Last active
September 24, 2020 17:31
-
-
Save rapPayne/75d7f678bb761d26d7e766360edaa724 to your computer and use it in GitHub Desktop.
Medium - Flutter Forms Ultimate Guide 1 adding a form
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: 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
The build method before adding a
tag.