Created
September 24, 2020 17:50
-
-
Save rapPayne/5b448a4647ba4d9a3d95dae9fdc9d870 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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, | |
| ), | |
| ); | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After adding a Form widget. Does nothing except set us up for validations in the future.