Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
2701c014
Commit
2701c014
authored
Aug 18, 2016
by
Eric Seidel
Committed by
GitHub
Aug 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add icons to pesto drawer (#5476)
Fixes
https://github.com/flutter/flutter/issues/5462
@mpcomplete
parent
073f64de
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
pesto_demo.dart
examples/flutter_gallery/lib/demo/pesto_demo.dart
+3
-0
No files found.
examples/flutter_gallery/lib/demo/pesto_demo.dart
View file @
2701c014
...
@@ -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
(
'/'
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment