add form text input aciton

This commit is contained in:
andrei 2021-11-04 21:27:55 -04:00
parent d914b8bcae
commit b8c49132d7
1 changed files with 4 additions and 5 deletions

View File

@ -76,15 +76,14 @@ class _AddFormState extends State<AddForm> {
}
return null;
},
onFieldSubmitted: (value) {
if (_formKey.currentState!.validate()) {
FocusScope.of(context).requestFocus(_TemplateFocusNode);
}
},
textInputAction: TextInputAction.next,
onFieldSubmitted: (value) =>
_formKey.currentState!.validate(),
decoration: const InputDecoration(labelText: 'Label')),
TextFormField(
decoration:
const InputDecoration(labelText: 'Description(optional)'),
textInputAction: TextInputAction.next,
onChanged: (value) {
_listDesc = value;
},