diff --git a/lib/pages/create_recipe_page.dart b/lib/pages/create_recipe_page.dart index 1637743..9fa9bdf 100644 --- a/lib/pages/create_recipe_page.dart +++ b/lib/pages/create_recipe_page.dart @@ -39,6 +39,7 @@ class _CreateRecipeState extends State { child: Column( children: [ TextFormField( + onTapOutside: (event) => FocusScope.of(context).unfocus(), onChanged: (value) => recipe.title = value, decoration: const InputDecoration( label: Text('Title'), @@ -47,6 +48,8 @@ class _CreateRecipeState extends State { color: Theme.of(context).colorScheme.onBackground), ), TextFormField( + onTapOutside: (event) => FocusScope.of(context).unfocus(), + minLines: 1, maxLines: 4, onChanged: (value) => recipe.description = value, decoration: const InputDecoration(