Change long press default

This commit is contained in:
Hillel Coren 2021-02-18 15:50:56 +02:00
parent be250ff75d
commit df8a7551a5
2 changed files with 5 additions and 5 deletions

View File

@ -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>(),
); );
} }

View File

@ -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,
), ),
], ],
), ),