We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc5b8b3 commit 3c66d71Copy full SHA for 3c66d71
example/lib/main.dart
@@ -33,6 +33,7 @@ class MyHomePage extends StatelessWidget {
33
padding: const EdgeInsets.all(8.0),
34
child: Center(
35
child: FormBuilder(
36
+ key: _formKey,
37
child: Column(
38
mainAxisAlignment: MainAxisAlignment.center,
39
children: <Widget>[
@@ -42,7 +43,9 @@ class MyHomePage extends StatelessWidget {
42
43
maxImages: 1,
44
),
45
const SizedBox(height: 15),
- RaisedButton(onPressed: () {
46
+ ElevatedButton(
47
+ child: Text('Submit'),
48
+ onPressed: () {
49
if (_formKey.currentState.saveAndValidate()) {
50
print(_formKey.currentState.value);
51
}
0 commit comments