Adjust style of app dropdown button

This commit is contained in:
Hillel Coren 2023-11-08 16:53:20 +02:00
parent e51d6a4963
commit daa29531dd
1 changed files with 1 additions and 12 deletions

View File

@ -34,7 +34,7 @@ class AppDropdownButton<T> extends StatelessWidget {
}
final bool isEmpty = checkedValue == null || checkedValue == '';
Widget dropDownButton = DropdownButtonFormField<T>(
return DropdownButtonFormField<T>(
decoration: labelText != null
? InputDecoration(label: Text(labelText!))
: InputDecoration.collapsed(hintText: ''),
@ -52,16 +52,5 @@ class AppDropdownButton<T> extends StatelessWidget {
...items
],
);
if (false && labelText != null) {
dropDownButton = InputDecorator(
decoration: InputDecoration(
labelText: labelText!.isEmpty ? null : labelText,
),
isEmpty: isEmpty && blankLabel == null,
child: dropDownButton);
}
return dropDownButton;
}
}