TextFields soft dismissable
This commit is contained in:
@@ -39,6 +39,7 @@ class _CreateRecipeState extends State<CreateRecipe> {
|
|||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
TextFormField(
|
TextFormField(
|
||||||
|
onTapOutside: (event) => FocusScope.of(context).unfocus(),
|
||||||
onChanged: (value) => recipe.title = value,
|
onChanged: (value) => recipe.title = value,
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
label: Text('Title'),
|
label: Text('Title'),
|
||||||
@@ -47,6 +48,8 @@ class _CreateRecipeState extends State<CreateRecipe> {
|
|||||||
color: Theme.of(context).colorScheme.onBackground),
|
color: Theme.of(context).colorScheme.onBackground),
|
||||||
),
|
),
|
||||||
TextFormField(
|
TextFormField(
|
||||||
|
onTapOutside: (event) => FocusScope.of(context).unfocus(),
|
||||||
|
minLines: 1,
|
||||||
maxLines: 4,
|
maxLines: 4,
|
||||||
onChanged: (value) => recipe.description = value,
|
onChanged: (value) => recipe.description = value,
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
|
|||||||
Reference in New Issue
Block a user