add form text input aciton
This commit is contained in:
parent
d914b8bcae
commit
b8c49132d7
|
|
@ -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;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue