From f747692277dc39e594f8d07a42163adc8bab5017 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 24 Jun 2019 22:48:48 +1000 Subject: [PATCH] Add an 'app drawer' --- lib/main.dart | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/lib/main.dart b/lib/main.dart index 57259a64..9ebe5a66 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -70,6 +70,30 @@ class _MyHomePageState extends State { // Here we take the value from the MyHomePage object that was created by // the App.build method, and use it to set our appbar title. title: Text(widget.title), + /* + leading: IconButton( + icon: Icon(Icons.menu), + tooltip: "Menu", + onPressed: null, + ) + */ + ), + drawer: new Drawer( + child: new ListView( + children: [ + new ListTile( + leading: new Image.asset("assets/image/icon.png", + fit: BoxFit.scaleDown, + ), + title: new Text("InvenTree"), + ), + new Divider(), + new ListTile( + title: new Text("Log In"), + leading: new Icon(Icons.security), + ), + ], + ) ), body: Center( // Center is a layout widget. It takes a single child and positions it