Skip to content

Instantly share code, notes, and snippets.

@rapPayne
Last active September 24, 2020 17:31
Show Gist options
  • Select an option

  • Save rapPayne/75d7f678bb761d26d7e766360edaa724 to your computer and use it in GitHub Desktop.

Select an option

Save rapPayne/75d7f678bb761d26d7e766360edaa724 to your computer and use it in GitHub Desktop.
Medium - Flutter Forms Ultimate Guide 1 adding a form
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text("Prestige Worldwide Registration")),
// TODO 1: Wrap the body in a Form widget
body: Container(
alignment: Alignment.center,
child: Column(
children: <Widget>[
_buildEmailField,
_buildPasswordField,
_buildPasswordConfirmationField,
_buildAgreeToTermsField,
],
),
),
floatingActionButton: FloatingActionButton(
child: Icon(Icons.save),
onPressed: _doRegister,
),
);
}
@rapPayne

Copy link
Copy Markdown
Author

The build method before adding a

tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment