diff --git a/lib/entities/climate/widgets/mode_selector.dart b/lib/entities/climate/widgets/mode_selector.dart index d77f130..6ff5d77 100644 --- a/lib/entities/climate/widgets/mode_selector.dart +++ b/lib/entities/climate/widgets/mode_selector.dart @@ -3,7 +3,7 @@ part of '../../../main.dart'; class ModeSelectorWidget extends StatelessWidget { final String caption; - final List options; + final List options; final String value; final double captionFontSize; final double valueFontSize; @@ -45,10 +45,10 @@ class ModeSelectorWidget extends StatelessWidget { color: Colors.black, ), hint: Text("Select ${caption.toLowerCase()}"), - items: options.map((String value) { + items: options.map((value) { return new DropdownMenuItem( - value: value, - child: Text(value), + value: '$value', + child: Text('$value'), ); }).toList(), onChanged: (mode) => onChange(mode),