Last active
November 13, 2015 04:00
-
-
Save cilphex/a9f6f25b61a5ec4da15a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void _showDrawer() { | |
... | |
} | |
# Approach 1 | |
Widget left() { | |
return new IconButton( | |
icon: 'navigation/menu', | |
onPressed: _showDrawer | |
); | |
} | |
return new ToolBar( | |
left: left(), | |
... | |
); | |
# Approach 2 | |
var left = new IconButton( | |
icon: 'navigation/menu', | |
onPressed: _showDrawer | |
); | |
return new ToolBar( | |
left: left, | |
... | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment