mirror of
https://github.com/flutter/flutter
synced 2024-10-14 04:02:56 +00:00
Add icons to pesto drawer (#5476)
Fixes https://github.com/flutter/flutter/issues/5462 @mpcomplete
This commit is contained in:
parent
073f64de1a
commit
2701c014de
|
@ -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('/'));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue