Skip to content

Instantly share code, notes, and snippets.

@redbluenat
Created March 31, 2019 17:07
Show Gist options
  • Select an option

  • Save redbluenat/86c48abfb06e96873ded3244fc249a4a to your computer and use it in GitHub Desktop.

Select an option

Save redbluenat/86c48abfb06e96873ded3244fc249a4a to your computer and use it in GitHub Desktop.
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