Created
March 31, 2019 17:07
-
-
Save redbluenat/86c48abfb06e96873ded3244fc249a4a 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
| Widget beerInfoInputsWidget() { | |
| return Column( | |
| children: [ | |
| Padding( | |
| padding: const EdgeInsets.only(left: 3, bottom: 4.0), | |
| child: TextField( | |
| controller: nameController, | |
| onChanged: (v) => nameController.text = v, | |
| decoration: InputDecoration( | |
| labelText: 'Name the beer', | |
| )), | |
| ), | |
| Padding( | |
| padding: const EdgeInsets.only(left: 3, bottom: 4.0), | |
| child: TextField( | |
| controller: countryController, | |
| onChanged: (v) => countryController.text = v, | |
| decoration: InputDecoration( | |
| labelText: "Country name", | |
| )), | |
| ), | |
| Padding( | |
| padding: const EdgeInsets.only(left: 3), | |
| child: TextField( | |
| controller: abvController, | |
| onChanged: (v) => abvController.text = v, | |
| decoration: InputDecoration( | |
| labelText: 'ABV', | |
| )), | |
| ), | |
| Padding( | |
| padding: const EdgeInsets.all(16.0), | |
| child: Builder( | |
| builder: (context) { | |
| return RaisedButton( | |
| onPressed: () => {}, | |
| color: Colors.lightBlue, | |
| child: Text('Add beer'), | |
| ); | |
| }, | |
| ), | |
| ), | |
| ], | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment