Created
April 1, 2019 09:52
-
-
Save iamEtornam/48a0765a754d91c5879d7022223649bd to your computer and use it in GitHub Desktop.
example of dropdownbutton in flutter
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
DropdownButton( | |
iconSize: 45.0, | |
items: <String>[ | |
'MTN', | |
'TIGO', | |
'AIRTEL'].map((String value) { | |
return DropdownMenuItem<String>( | |
value: value, | |
child: Text(value), | |
); | |
}).toList(), | |
onChanged: (String value) { | |
isSelected = value; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment