Skip to content

Commit 778367f

Browse files
committed
2 parents b624711 + 643ae9d commit 778367f

File tree

5 files changed

+75
-262
lines changed

5 files changed

+75
-262
lines changed

example/lib/main.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class MyHomePage extends StatelessWidget {
3333
padding: const EdgeInsets.all(8.0),
3434
child: Center(
3535
child: FormBuilder(
36+
key: _formKey,
3637
child: Column(
3738
mainAxisAlignment: MainAxisAlignment.center,
3839
children: <Widget>[
@@ -42,7 +43,9 @@ class MyHomePage extends StatelessWidget {
4243
maxImages: 1,
4344
),
4445
const SizedBox(height: 15),
45-
RaisedButton(onPressed: () {
46+
ElevatedButton(
47+
child: Text('Submit'),
48+
onPressed: () {
4649
if (_formKey.currentState.saveAndValidate()) {
4750
print(_formKey.currentState.value);
4851
}

0 commit comments

Comments
 (0)