Commit 2701c014 authored by Eric Seidel's avatar Eric Seidel Committed by GitHub

Add icons to pesto drawer (#5476)

Fixes https://github.com/flutter/flutter/issues/5462

@mpcomplete
parent 073f64de
...@@ -169,6 +169,7 @@ class _RecipeGridPageState extends State<RecipeGridPage> { ...@@ -169,6 +169,7 @@ class _RecipeGridPageState extends State<RecipeGridPage> {
), ),
new DrawerItem( new DrawerItem(
child: new Text('Home'), child: new Text('Home'),
icon: new Icon(Icons.home),
selected: !showFavorites, selected: !showFavorites,
onPressed: () { onPressed: () {
Navigator.popUntil(context, ModalRoute.withName('/pesto')); Navigator.popUntil(context, ModalRoute.withName('/pesto'));
...@@ -176,6 +177,7 @@ class _RecipeGridPageState extends State<RecipeGridPage> { ...@@ -176,6 +177,7 @@ class _RecipeGridPageState extends State<RecipeGridPage> {
), ),
new DrawerItem( new DrawerItem(
child: new Text('Favorites'), child: new Text('Favorites'),
icon: new Icon(Icons.favorite),
selected: showFavorites, selected: showFavorites,
onPressed: () { onPressed: () {
if (showFavorites) if (showFavorites)
...@@ -187,6 +189,7 @@ class _RecipeGridPageState extends State<RecipeGridPage> { ...@@ -187,6 +189,7 @@ class _RecipeGridPageState extends State<RecipeGridPage> {
new Divider(), new Divider(),
new DrawerItem( new DrawerItem(
child: new Text('Return to Gallery'), child: new Text('Return to Gallery'),
icon: new Icon(Icons.arrow_back),
onPressed: () { onPressed: () {
Navigator.popUntil(context, ModalRoute.withName('/')); Navigator.popUntil(context, ModalRoute.withName('/'));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment