Correct design selector

This commit is contained in:
Hillel Coren 2021-05-14 15:49:43 +03:00
parent d836152f81
commit ed64aa4ff9
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ class DesignPicker extends StatelessWidget {
final designState = store.state.designState;
return AppDropdownButton<String>(
value: initialValue,
value: initialValue ?? designState.cleanDesign.id,
onChanged: (dynamic value) => onSelected(designState.map[value]),
items: designState.list
.where((designId) =>

View File

@ -397,7 +397,7 @@ class _DesignSettingsState extends State<DesignSettings> {
controller: widget.nameController,
),
DesignPicker(
label: localization.loadDesign,
label: localization.design,
onSelected: (value) {
widget.onLoadDesign(value);
_selectedDesign = value;