From ebe2cb89708d33329d6d5055b7908a700a6e36b6 Mon Sep 17 00:00:00 2001 From: SomnusVeritas Date: Wed, 1 Nov 2023 16:31:17 +0100 Subject: [PATCH] Added floatingactionbutton without functionality --- lib/pages/create_recipe_page.dart | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 + } }