Added a more appriopriate name for the events mapping function

This commit is contained in:
Mariano Uvalle 2019-04-03 00:44:06 -06:00
parent b2a8ac6a9e
commit a9de09efd6

View file

@ -113,11 +113,11 @@ class _NewImageScreenState extends State<NewImageScreen> {
value: dropdownValue, value: dropdownValue,
onChanged: (String value) => onDropdownChanged(bloc, value), onChanged: (String value) => onDropdownChanged(bloc, value),
hint: Text('Event'), hint: Text('Event'),
items: events.map((String name) { items: events.map((String event) {
return CustomDropdownMenuItem( return CustomDropdownMenuItem(
value: name, value: event,
child: Text( child: Text(
name, event,
style: TextStyle(color: Colors.white), style: TextStyle(color: Colors.white),
), ),
); );