Created
March 29, 2018 14:21
-
-
Save aaronoe/4a46e6eef5cdfd8ebc5ee41d0904a522 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| class ToolbarDemo extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return new Scaffold( | |
| appBar: new AppBar( | |
| actions: <Widget>[ | |
| new IconButton( | |
| icon: new Icon(Icons.star), | |
| onPressed: _handleClickFavorite | |
| ), | |
| new IconButton( | |
| icon: new Icon(Icons.add), | |
| onPressed: _handleClickAdd | |
| ) | |
| ], | |
| ), | |
| body: new MovieDetailScreen(), | |
| ); | |
| } | |
| _handleClickFavorite() {} | |
| _handleClickAdd() {} | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment