diff --git a/lib/pages/create_recipe_page.dart b/lib/pages/create_recipe_page.dart index 9fa9bdf..4873995 100644 --- a/lib/pages/create_recipe_page.dart +++ b/lib/pages/create_recipe_page.dart @@ -33,6 +33,12 @@ class _CreateRecipeState extends State { appBar: AppBar( title: const Text('Create Recipe'), ), + floatingActionButton: recipe.isNotEmpty + ? FloatingActionButton( + onPressed: _onRecipeSubmitted, + child: const Icon(Icons.save), + ) + : null, body: Form( child: Padding( padding: const EdgeInsets.symmetric(horizontal: 20), @@ -152,4 +158,8 @@ class _CreateRecipeState extends State { ), ); } + + void _onRecipeSubmitted() { + // TODO implement onRecipeSubmitted + } }