|
|
@ -42,12 +42,12 @@ class DropdownButtonSettingsTile<T> extends InputSettingsTile<SelectOption<T>> { |
|
|
|
child: DropdownButton<T>( |
|
|
|
child: DropdownButton<T>( |
|
|
|
isExpanded: true, |
|
|
|
isExpanded: true, |
|
|
|
value: value, |
|
|
|
value: value, |
|
|
|
items: valuesSnapshot.data!.keys |
|
|
|
items: valuesSnapshot.requireData.keys |
|
|
|
.map( |
|
|
|
.map( |
|
|
|
(final k) => DropdownMenuItem( |
|
|
|
(final k) => DropdownMenuItem( |
|
|
|
value: k, |
|
|
|
value: k, |
|
|
|
child: Text( |
|
|
|
child: Text( |
|
|
|
valuesSnapshot.data![k]!(context), |
|
|
|
valuesSnapshot.requireData[k]!(context), |
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|