Skip to content

Instantly share code, notes, and snippets.

@shubie
Last active April 18, 2019 19:10
Show Gist options
  • Save shubie/962882a560c1ec391a994a58ae5c09c9 to your computer and use it in GitHub Desktop.
Save shubie/962882a560c1ec391a994a58ae5c09c9 to your computer and use it in GitHub Desktop.
Container(
padding: EdgeInsets.symmetric(horizontal: 50, vertical: 30),
child: Column(
children: <Widget>[
DropdownButton<String>(
isExpanded: true,
items: _states.map((String dropDownStringItem) {
return DropdownMenuItem<String>(
value: dropDownStringItem,
child: Text(dropDownStringItem),
);
}).toList(),
onChanged: (value) => _onSelectedState(value),
value: _selectedState,
),
DropdownButton<String>(
isExpanded: true,
items: _lgas.map((String dropDownStringItem) {
return DropdownMenuItem<String>(
value: dropDownStringItem,
child: Text(dropDownStringItem),
);
}).toList(),
// onChanged: (value) => print(value),
onChanged: (value) => _onSelectedLGA(value),
value: _selectedLGA,
),
],
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment