1
0
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:
Alabhya
2021-02-11 13:13:07 +05:30
committed by GitHub
parent b52b838776
commit b6d9411aa1
3 changed files with 12 additions and 0 deletions

View File

@@ -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.';