Adjust style of app dropdown button
This commit is contained in:
parent
8dfe0e38d1
commit
5bb5d4ce57
|
|
@ -34,9 +34,11 @@ class AppDropdownButton<T> extends StatelessWidget {
|
||||||
}
|
}
|
||||||
final bool isEmpty = checkedValue == null || checkedValue == '';
|
final bool isEmpty = checkedValue == null || checkedValue == '';
|
||||||
|
|
||||||
Widget dropDownButton = DropdownButtonHideUnderline(
|
Widget dropDownButton = DropdownButtonFormField<T>(
|
||||||
child: DropdownButton<T>(
|
decoration: labelText != null
|
||||||
value: checkedValue,
|
? InputDecoration(label: Text(labelText!))
|
||||||
|
: InputDecoration.collapsed(hintText: ''),
|
||||||
|
value: checkedValue == blankValue ? null : checkedValue,
|
||||||
isExpanded: true,
|
isExpanded: true,
|
||||||
isDense: labelText != null,
|
isDense: labelText != null,
|
||||||
onChanged: enabled ? onChanged : null,
|
onChanged: enabled ? onChanged : null,
|
||||||
|
|
@ -49,10 +51,9 @@ class AppDropdownButton<T> extends StatelessWidget {
|
||||||
),
|
),
|
||||||
...items
|
...items
|
||||||
],
|
],
|
||||||
),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if (labelText != null) {
|
if (false && labelText != null) {
|
||||||
dropDownButton = InputDecorator(
|
dropDownButton = InputDecorator(
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: labelText!.isEmpty ? null : labelText,
|
labelText: labelText!.isEmpty ? null : labelText,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue