Added floatingactionbutton without functionality
This commit is contained in:
@@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user