Commit 3964aaad authored by Dragoș Tiselice's avatar Dragoș Tiselice Committed by GitHub

Added action to Pesto FAB. (#5687)

The floating action button inside of the Pesto demo now opens up
a snackbar. Fixes #5685.
parent 6007f6af
...@@ -98,7 +98,11 @@ class _RecipeGridPageState extends State<RecipeGridPage> { ...@@ -98,7 +98,11 @@ class _RecipeGridPageState extends State<RecipeGridPage> {
drawer: buildDrawer(context), drawer: buildDrawer(context),
floatingActionButton: new FloatingActionButton( floatingActionButton: new FloatingActionButton(
child: new Icon(Icons.edit), child: new Icon(Icons.edit),
onPressed: () { } onPressed: () {
scaffoldKey.currentState.showSnackBar(new SnackBar(
content: new Text('Not supported.')
));
}
), ),
body: buildBody(context, statusBarHeight) body: buildBody(context, statusBarHeight)
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment