Add icons to pesto drawer (#5476)

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

@mpcomplete
This commit is contained in:
Eric Seidel 2016-08-18 07:03:22 -07:00 committed by GitHub
parent 073f64de1a
commit 2701c014de

View file

@ -169,6 +169,7 @@ class _RecipeGridPageState extends State<RecipeGridPage> {
),
new DrawerItem(
child: new Text('Home'),
icon: new Icon(Icons.home),
selected: !showFavorites,
onPressed: () {
Navigator.popUntil(context, ModalRoute.withName('/pesto'));
@ -176,6 +177,7 @@ class _RecipeGridPageState extends State<RecipeGridPage> {
),
new DrawerItem(
child: new Text('Favorites'),
icon: new Icon(Icons.favorite),
selected: showFavorites,
onPressed: () {
if (showFavorites)
@ -187,6 +189,7 @@ class _RecipeGridPageState extends State<RecipeGridPage> {
new Divider(),
new DrawerItem(
child: new Text('Return to Gallery'),
icon: new Icon(Icons.arrow_back),
onPressed: () {
Navigator.popUntil(context, ModalRoute.withName('/'));
}