Skip to content

Commit 643ae9d

Browse files
authored
Merge pull request #4 from YuenEsc/main
Updated to use flutter_form_builder: 5.0.0-alpha.1
2 parents 0f6e72a + 3c66d71 commit 643ae9d

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)