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;
|
return null;
|
||||||
},
|
},
|
||||||
onFieldSubmitted: (value) {
|
textInputAction: TextInputAction.next,
|
||||||
if (_formKey.currentState!.validate()) {
|
onFieldSubmitted: (value) =>
|
||||||
FocusScope.of(context).requestFocus(_TemplateFocusNode);
|
_formKey.currentState!.validate(),
|
||||||
}
|
|
||||||
},
|
|
||||||
decoration: const InputDecoration(labelText: 'Label')),
|
decoration: const InputDecoration(labelText: 'Label')),
|
||||||
TextFormField(
|
TextFormField(
|
||||||
decoration:
|
decoration:
|
||||||
const InputDecoration(labelText: 'Description(optional)'),
|
const InputDecoration(labelText: 'Description(optional)'),
|
||||||
|
textInputAction: TextInputAction.next,
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
_listDesc = value;
|
_listDesc = value;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue