mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: opt tablet nav option
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -204,7 +204,7 @@ class _MainAppState extends State<MainApp>
|
|||||||
if (useSideBar || !isPortrait) ...[
|
if (useSideBar || !isPortrait) ...[
|
||||||
Obx(
|
Obx(
|
||||||
() => _mainController.navigationBars.length > 1
|
() => _mainController.navigationBars.length > 1
|
||||||
? context.isTablet
|
? context.isTablet && GStorage.optTabletNav
|
||||||
? Column(
|
? Column(
|
||||||
children: [
|
children: [
|
||||||
SizedBox(
|
SizedBox(
|
||||||
|
|||||||
@@ -203,6 +203,14 @@ List<SettingsModel> get styleSettings => [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
SettingsModel(
|
||||||
|
settingsType: SettingsType.sw1tch,
|
||||||
|
title: '优化平板导航栏',
|
||||||
|
leading: Icon(MdiIcons.soundbar),
|
||||||
|
setKey: SettingBoxKey.optTabletNav,
|
||||||
|
defaultVal: true,
|
||||||
|
needReboot: true,
|
||||||
|
),
|
||||||
SettingsModel(
|
SettingsModel(
|
||||||
settingsType: SettingsType.sw1tch,
|
settingsType: SettingsType.sw1tch,
|
||||||
title: 'MD3样式底栏',
|
title: 'MD3样式底栏',
|
||||||
|
|||||||
@@ -471,6 +471,9 @@ class GStorage {
|
|||||||
static num get maxCacheSize => GStorage.setting
|
static num get maxCacheSize => GStorage.setting
|
||||||
.get(SettingBoxKey.maxCacheSize, defaultValue: pow(1024, 3));
|
.get(SettingBoxKey.maxCacheSize, defaultValue: pow(1024, 3));
|
||||||
|
|
||||||
|
static bool get optTabletNav =>
|
||||||
|
GStorage.setting.get(SettingBoxKey.optTabletNav, defaultValue: true);
|
||||||
|
|
||||||
static List<double> get dynamicDetailRatio => List<double>.from(setting
|
static List<double> get dynamicDetailRatio => List<double>.from(setting
|
||||||
.get(SettingBoxKey.dynamicDetailRatio, defaultValue: [60.0, 40.0]));
|
.get(SettingBoxKey.dynamicDetailRatio, defaultValue: [60.0, 40.0]));
|
||||||
|
|
||||||
@@ -758,6 +761,7 @@ class SettingBoxKey {
|
|||||||
navSearchStreamDebounce = 'navSearchStreamDebounce',
|
navSearchStreamDebounce = 'navSearchStreamDebounce',
|
||||||
showPgcTimeline = 'showPgcTimeline',
|
showPgcTimeline = 'showPgcTimeline',
|
||||||
pageTransition = 'pageTransition',
|
pageTransition = 'pageTransition',
|
||||||
|
optTabletNav = 'optTabletNav',
|
||||||
|
|
||||||
// WebDAV
|
// WebDAV
|
||||||
webdavUri = 'webdavUri',
|
webdavUri = 'webdavUri',
|
||||||
|
|||||||
Reference in New Issue
Block a user