diff --git a/lib/entity_class/stateless_widgets.dart b/lib/entity_class/stateless_widgets.dart index 21adbd4..55498d9 100644 --- a/lib/entity_class/stateless_widgets.dart +++ b/lib/entity_class/stateless_widgets.dart @@ -682,20 +682,30 @@ class ModeSelectorWidget extends StatelessWidget { Text("$caption", style: TextStyle( fontSize: captionFontSize ?? Entity.stateFontSize )), - DropdownButton( - value: "$value", - iconSize: 30.0, - style: TextStyle( - fontSize: valueFontSize ?? Entity.largeFontSize, - color: Colors.black, - ), - items: options.map((String value) { - return new DropdownMenuItem( - value: value, - child: new Text(value), - ); - }).toList(), - onChanged: (mode) => onChange(mode), + Row( + children: [ + Expanded( + child: ButtonTheme( + alignedDropdown: true, + child: DropdownButton( + value: "$value", + iconSize: 30.0, + isExpanded: true, + style: TextStyle( + fontSize: valueFontSize ?? Entity.largeFontSize, + color: Colors.black, + ), + items: options.map((String value) { + return new DropdownMenuItem( + value: value, + child: Text(value), + ); + }).toList(), + onChanged: (mode) => onChange(mode), + ), + ), + ) + ], ), Container(height: bottomPadding ?? Entity.rowPadding,) ],