summaryrefslogtreecommitdiff
path: root/lib/ui.dart
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ui.dart')
-rw-r--r--lib/ui.dart22
1 files changed, 10 insertions, 12 deletions
diff --git a/lib/ui.dart b/lib/ui.dart
index 8d5e52f..02093eb 100644
--- a/lib/ui.dart
+++ b/lib/ui.dart
@@ -10,7 +10,7 @@ class Sia extends StatelessWidget {
Widget build(BuildContext context) {
return ChangeNotifierProvider<AppState>(
create: (BuildContext context) => AppState(),
- child: const DevicesPage(),
+ child: const MaterialApp(home: DevicesPage()),
);
}
}
@@ -20,17 +20,15 @@ class DevicesPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
- return MaterialApp(
- home: Scaffold(
- appBar: AppBar(title: const Text("Contacts")),
- body: const Column(
- children: <Widget>[
- Expanded(child: ContactList()),
- ],
- ),
- bottomNavigationBar: const SafeArea(
- child: ConnectionStatus(),
- ),
+ return Scaffold(
+ appBar: AppBar(title: const Text("Contacts")),
+ body: const Column(
+ children: <Widget>[
+ Expanded(child: ContactList()),
+ ],
+ ),
+ bottomNavigationBar: const SafeArea(
+ child: ConnectionStatus(),
),
);
}