From 4e88be56c3086f085f5cbb461068d499b4a0d58f Mon Sep 17 00:00:00 2001 From: estevez Date: Mon, 10 Sep 2018 01:25:25 +0300 Subject: [PATCH] Add app drawer container --- .idea/workspace.xml | 12 +++++------- lib/main.dart | 16 ++++++++++++++++ 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 5844062..3284bac 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,8 +3,6 @@ - - @@ -23,8 +21,8 @@ - - + + @@ -243,7 +241,7 @@ - + @@ -332,8 +330,8 @@ - - + + diff --git a/lib/main.dart b/lib/main.dart index d76db64..f50158f 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -90,6 +90,22 @@ class _MyHomePageState extends State { // the App.build method, and use it to set our appbar title. title: new Text(widget.title), ), + drawer: new Drawer( + child: ListView( + children: [ + new DrawerHeader(child: Text("Menu")), + new ListTile( + leading: Icon(Icons.settings), + title: Text("Settings"), + ), + new AboutListTile( + applicationName: "Hass Client", + applicationVersion: "0.1", + applicationLegalese: "Keyboard Crumbs", + ) + ], + ), + ), body: ListView.builder( itemCount: entities.length, itemBuilder: (BuildContext context, int position) {