mod: opt tablet nav option

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-22 22:02:02 +08:00
parent ff0ff42222
commit 2f5a3d66fc
3 changed files with 13 additions and 1 deletions

View File

@@ -204,7 +204,7 @@ class _MainAppState extends State<MainApp>
if (useSideBar || !isPortrait) ...[
Obx(
() => _mainController.navigationBars.length > 1
? context.isTablet
? context.isTablet && GStorage.optTabletNav
? Column(
children: [
SizedBox(

View File

@@ -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(
settingsType: SettingsType.sw1tch,
title: 'MD3样式底栏',

View File

@@ -471,6 +471,9 @@ class GStorage {
static num get maxCacheSize => GStorage.setting
.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
.get(SettingBoxKey.dynamicDetailRatio, defaultValue: [60.0, 40.0]));
@@ -758,6 +761,7 @@ class SettingBoxKey {
navSearchStreamDebounce = 'navSearchStreamDebounce',
showPgcTimeline = 'showPgcTimeline',
pageTransition = 'pageTransition',
optTabletNav = 'optTabletNav',
// WebDAV
webdavUri = 'webdavUri',