mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
@@ -347,7 +347,7 @@ List<SettingsModel> get styleSettings => [
|
|||||||
title: '顶/底栏滚动阈值',
|
title: '顶/底栏滚动阈值',
|
||||||
subtitle: '滚动多少像素后收起/展开顶底栏,默认50像素',
|
subtitle: '滚动多少像素后收起/展开顶底栏,默认50像素',
|
||||||
leading: const Icon(Icons.swipe_vertical),
|
leading: const Icon(Icons.swipe_vertical),
|
||||||
defaultVal: true,
|
defaultVal: false,
|
||||||
setKey: SettingBoxKey.enableScrollThreshold,
|
setKey: SettingBoxKey.enableScrollThreshold,
|
||||||
needReboot: true,
|
needReboot: true,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
|
|||||||
@@ -605,7 +605,7 @@ class Pref {
|
|||||||
_setting.get(SettingBoxKey.hideSearchBar, defaultValue: true);
|
_setting.get(SettingBoxKey.hideSearchBar, defaultValue: true);
|
||||||
|
|
||||||
static bool get enableScrollThreshold =>
|
static bool get enableScrollThreshold =>
|
||||||
_setting.get(SettingBoxKey.enableScrollThreshold, defaultValue: true);
|
_setting.get(SettingBoxKey.enableScrollThreshold, defaultValue: false);
|
||||||
|
|
||||||
static double get scrollThreshold =>
|
static double get scrollThreshold =>
|
||||||
_setting.get(SettingBoxKey.scrollThreshold, defaultValue: 50.0);
|
_setting.get(SettingBoxKey.scrollThreshold, defaultValue: 50.0);
|
||||||
|
|||||||
Reference in New Issue
Block a user