Add app drawer container

This commit is contained in:
estevez
2018-09-10 01:25:25 +03:00
parent 7ed95b19dc
commit 4e88be56c3
2 changed files with 21 additions and 7 deletions

View File

@ -90,6 +90,22 @@ class _MyHomePageState extends State<MyHomePage> {
// the App.build method, and use it to set our appbar title.
title: new Text(widget.title),
),
drawer: new Drawer(
child: ListView(
children: <Widget>[
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) {