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:
@@ -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)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user