mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Add an 'app drawer'
This commit is contained in:
parent
f174d99844
commit
f747692277
1 changed files with 24 additions and 0 deletions
|
|
@ -70,6 +70,30 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||||
// Here we take the value from the MyHomePage object that was created by
|
// 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.
|
// the App.build method, and use it to set our appbar title.
|
||||||
title: Text(widget.title),
|
title: Text(widget.title),
|
||||||
|
/*
|
||||||
|
leading: IconButton(
|
||||||
|
icon: Icon(Icons.menu),
|
||||||
|
tooltip: "Menu",
|
||||||
|
onPressed: null,
|
||||||
|
)
|
||||||
|
*/
|
||||||
|
),
|
||||||
|
drawer: new Drawer(
|
||||||
|
child: new ListView(
|
||||||
|
children: <Widget>[
|
||||||
|
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(
|
body: Center(
|
||||||
// Center is a layout widget. It takes a single child and positions it
|
// Center is a layout widget. It takes a single child and positions it
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue