From 32c8e768550ebed38d6a190dc60b44f950344a96 Mon Sep 17 00:00:00 2001 From: Yegor Vialov Date: Fri, 3 Apr 2020 13:07:26 +0000 Subject: [PATCH] Fix for non-string climate mode values --- lib/entities/climate/widgets/mode_selector.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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),