diff --git a/lib/add_form.dart b/lib/add_form.dart index 4c7c847..b70013d 100644 --- a/lib/add_form.dart +++ b/lib/add_form.dart @@ -76,15 +76,14 @@ class _AddFormState extends State { } 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; },