Added floatingactionbutton without functionality

This commit is contained in:
SomnusVeritas
2023-11-01 16:31:17 +01:00
parent 36ad714833
commit ebe2cb8970

View File

@@ -33,6 +33,12 @@ class _CreateRecipeState extends State<CreateRecipe> {
appBar: AppBar( appBar: AppBar(
title: const Text('Create Recipe'), title: const Text('Create Recipe'),
), ),
floatingActionButton: recipe.isNotEmpty
? FloatingActionButton(
onPressed: _onRecipeSubmitted,
child: const Icon(Icons.save),
)
: null,
body: Form( body: Form(
child: Padding( child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 20), padding: const EdgeInsets.symmetric(horizontal: 20),
@@ -152,4 +158,8 @@ class _CreateRecipeState extends State<CreateRecipe> {
), ),
); );
} }
void _onRecipeSubmitted() {
// TODO implement onRecipeSubmitted
}
} }