diff options
| author | xengineering <me@xengineering.eu> | 2026-04-08 11:58:06 +0200 |
|---|---|---|
| committer | xengineering <me@xengineering.eu> | 2026-04-08 11:58:06 +0200 |
| commit | 5171ef6557c3f38a32e68313e51c4ca1e866835a (patch) | |
| tree | b7beb8694f798728c3ee1eb4233fb52df94f3a92 /lib | |
| parent | 9048de5d0ad7611fb92a51b59be332921a93b943 (diff) | |
| download | sia-app-5171ef6557c3f38a32e68313e51c4ca1e866835a.tar sia-app-5171ef6557c3f38a32e68313e51c4ca1e866835a.tar.zst sia-app-5171ef6557c3f38a32e68313e51c4ca1e866835a.zip | |
Fix missing SafeArea for Android
The start of the DevicesPage could be below a notch or header bar in
Android.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/ui.dart | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/lib/ui.dart b/lib/ui.dart index 66078da..67a830f 100644 --- a/lib/ui.dart +++ b/lib/ui.dart @@ -92,21 +92,23 @@ class DevicesPage extends StatelessWidget { @override Widget build(BuildContext context) { return const Scaffold( - body: SingleChildScrollView( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: <Widget>[ - Padding( - padding: EdgeInsets.all(15.0), - child: Text("Contacts", style: TextStyle(fontSize: 22)), - ), - ContactList(), - Padding( - padding: EdgeInsets.all(15.0), - child: Text("Covers", style: TextStyle(fontSize: 22)), - ), - CoverList(), - ], + body: SafeArea( + child: SingleChildScrollView( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: <Widget>[ + Padding( + padding: EdgeInsets.all(15.0), + child: Text("Contacts", style: TextStyle(fontSize: 22)), + ), + ContactList(), + Padding( + padding: EdgeInsets.all(15.0), + child: Text("Covers", style: TextStyle(fontSize: 22)), + ), + CoverList(), + ], + ), ), ), bottomNavigationBar: ConnectionStatus(), |
