From 3964aaad55da3cdd553bc944b9d22fb5c04f6d43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Drago=C8=99=20Tiselice?= Date: Wed, 31 Aug 2016 14:50:14 -0700 Subject: [PATCH] Added action to Pesto FAB. (#5687) The floating action button inside of the Pesto demo now opens up a snackbar. Fixes #5685. --- examples/flutter_gallery/lib/demo/pesto_demo.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/flutter_gallery/lib/demo/pesto_demo.dart b/examples/flutter_gallery/lib/demo/pesto_demo.dart index c0bbcd395e..a0f49a2ed9 100644 --- a/examples/flutter_gallery/lib/demo/pesto_demo.dart +++ b/examples/flutter_gallery/lib/demo/pesto_demo.dart @@ -98,7 +98,11 @@ class _RecipeGridPageState extends State { 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) )