Skip to content

Instantly share code, notes, and snippets.

View deedos's full-sized avatar

Daniel Roviriego deedos

  • Rio de Janeiro - Brazil
View GitHub Profile
@rayjadore
rayjadore / flutter-dropdown.dart
Created January 29, 2019 10:27 — forked from naumanahmed19/flutter-dropdown.dart
Flutter DropdownButton With Validation
String _town;
_townField() {
return FormField<String>(
validator: (value) {
if (value == null) {
return "Select your area";
}
},
onSaved: (value) {
formData['town'] = value;