release apk
All checks were successful
All checks were successful
This commit is contained in:
@@ -721,13 +721,11 @@ class _TractionPageState extends State<TractionPage> {
|
||||
if (field.enumValues != null && field.enumValues!.isNotEmpty) {
|
||||
final options = field.enumValues!.map((e) => e.toString()).toSet().toList();
|
||||
final currentValue = _enumSelections[field.name];
|
||||
if (currentValue != null && !options.contains(currentValue)) {
|
||||
options.insert(0, currentValue);
|
||||
}
|
||||
final safeValue = options.contains(currentValue) ? currentValue : null;
|
||||
return SizedBox(
|
||||
width: width,
|
||||
child: DropdownButtonFormField<String?>(
|
||||
value: currentValue,
|
||||
value: safeValue,
|
||||
decoration: InputDecoration(
|
||||
labelText: field.display,
|
||||
border: const OutlineInputBorder(),
|
||||
|
||||
Reference in New Issue
Block a user