mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Added Focusnodes in form sample (#707)
This commit is contained in:
@@ -64,6 +64,8 @@ class _FormValidationDemoState extends State<FormValidationDemo> {
|
||||
children: [
|
||||
// A text field that validates that the text is an adjective.
|
||||
TextFormField(
|
||||
autofocus: true,
|
||||
textInputAction: TextInputAction.next,
|
||||
validator: (value) {
|
||||
if (value.isEmpty) {
|
||||
return 'Please enter an adjective.';
|
||||
|
||||
Reference in New Issue
Block a user