diff --git a/lib/ui/app/forms/app_dropdown_button.dart b/lib/ui/app/forms/app_dropdown_button.dart index ebae2f6f3..22c79cac5 100644 --- a/lib/ui/app/forms/app_dropdown_button.dart +++ b/lib/ui/app/forms/app_dropdown_button.dart @@ -34,25 +34,26 @@ class AppDropdownButton extends StatelessWidget { } final bool isEmpty = checkedValue == null || checkedValue == ''; - Widget dropDownButton = DropdownButtonHideUnderline( - child: DropdownButton( - value: checkedValue, - isExpanded: true, - isDense: labelText != null, - onChanged: enabled ? onChanged : null, - selectedItemBuilder: selectedItemBuilder, - items: [ - if (showBlank || isEmpty) - DropdownMenuItem( - value: blankValue, - child: blankLabel == null ? SizedBox() : Text(blankLabel!), - ), - ...items - ], - ), + Widget dropDownButton = DropdownButtonFormField( + decoration: labelText != null + ? InputDecoration(label: Text(labelText!)) + : InputDecoration.collapsed(hintText: ''), + value: checkedValue == blankValue ? null : checkedValue, + isExpanded: true, + isDense: labelText != null, + onChanged: enabled ? onChanged : null, + selectedItemBuilder: selectedItemBuilder, + items: [ + if (showBlank || isEmpty) + DropdownMenuItem( + value: blankValue, + child: blankLabel == null ? SizedBox() : Text(blankLabel!), + ), + ...items + ], ); - if (labelText != null) { + if (false && labelText != null) { dropDownButton = InputDecorator( decoration: InputDecoration( labelText: labelText!.isEmpty ? null : labelText,