Skip to content

Instantly share code, notes, and snippets.

@rapPayne
Created September 24, 2020 17:50
Show Gist options
  • Select an option

  • Save rapPayne/5b448a4647ba4d9a3d95dae9fdc9d870 to your computer and use it in GitHub Desktop.

Select an option

Save rapPayne/5b448a4647ba4d9a3d95dae9fdc9d870 to your computer and use it in GitHub Desktop.
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text("Prestige Worldwide Registration")),
// TODO 1: Wrap the body in a Form widget
body: Form( // <-- Add this widget. (Don't forget to close it!)
child: 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

After adding a Form widget. Does nothing except set us up for validations in the future.

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