Change long press default
This commit is contained in:
parent
be250ff75d
commit
df8a7551a5
|
|
@ -24,7 +24,7 @@ abstract class PrefState implements Built<PrefState, PrefStateBuilder> {
|
||||||
requireAuthentication: false,
|
requireAuthentication: false,
|
||||||
colorTheme: kColorThemeLight,
|
colorTheme: kColorThemeLight,
|
||||||
showFilterSidebar: false,
|
showFilterSidebar: false,
|
||||||
longPressSelectionIsDefault: false,
|
longPressSelectionIsDefault: true,
|
||||||
companyPrefs: BuiltMap<String, CompanyPrefState>(),
|
companyPrefs: BuiltMap<String, CompanyPrefState>(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -120,12 +120,12 @@ class _DeviceSettingsState extends State<DeviceSettings> {
|
||||||
),
|
),
|
||||||
BoolDropdownButton(
|
BoolDropdownButton(
|
||||||
label: localization.listLongPress,
|
label: localization.listLongPress,
|
||||||
value: prefState.longPressSelectionIsDefault,
|
value: !prefState.longPressSelectionIsDefault,
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
viewModel.onLongPressSelectionIsDefault(context, value);
|
viewModel.onLongPressSelectionIsDefault(context, !value);
|
||||||
},
|
},
|
||||||
enabledLabel: localization.startMultiselect,
|
enabledLabel: localization.showActions,
|
||||||
disabledLabel: localization.showActions,
|
disabledLabel: localization.startMultiselect,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue