Added action to Pesto FAB. (#5687)

The floating action button inside of the Pesto demo now opens up
a snackbar. Fixes #5685.
This commit is contained in:
Dragoș Tiselice
2016-08-31 14:50:14 -07:00
committed by GitHub
parent 6007f6af36
commit 3964aaad55

View File

@@ -98,7 +98,11 @@ class _RecipeGridPageState extends State<RecipeGridPage> {
drawer: buildDrawer(context),
floatingActionButton: new FloatingActionButton(
child: new Icon(Icons.edit),
onPressed: () { }
onPressed: () {
scaffoldKey.currentState.showSnackBar(new SnackBar(
content: new Text('Not supported.')
));
}
),
body: buildBody(context, statusBarHeight)
)