Last active
April 18, 2019 19:10
-
-
Save shubie/962882a560c1ec391a994a58ae5c09c9 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
| 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