mod: add expand dyn live panel option

Closes #302

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-02-22 16:35:19 +08:00
parent d1c74b9389
commit 6506afa732
3 changed files with 12 additions and 1 deletions

View File

@@ -34,7 +34,7 @@ class DynamicsController extends GetxController
int allFollowedUpsTotal = 0;
late int currentMid = -1;
late bool showLiveItems = false;
late bool showLiveItems = GStorage.expandDynLivePanel;
@override
void onInit() {

View File

@@ -258,6 +258,13 @@ List<SettingsModel> get styleSettings => [
setKey: SettingBoxKey.dynamicsShowAllFollowedUp,
defaultVal: false,
),
SettingsModel(
settingsType: SettingsType.sw1tch,
title: '动态页展开正在直播UP列表',
leading: Icon(Icons.live_tv),
setKey: SettingBoxKey.expandDynLivePanel,
defaultVal: false,
),
SettingsModel(
settingsType: SettingsType.normal,
onTap: (setState) async {

View File

@@ -384,6 +384,9 @@ class GStorage {
static bool get antiGoodsReply =>
GStorage.setting.get(SettingBoxKey.antiGoodsReply, defaultValue: false);
static bool get expandDynLivePanel => GStorage.setting
.get(SettingBoxKey.expandDynLivePanel, defaultValue: false);
static List<double> get dynamicDetailRatio => List<double>.from(setting
.get(SettingBoxKey.dynamicDetailRatio, defaultValue: [60.0, 40.0]));
@@ -621,6 +624,7 @@ class SettingBoxKey {
isPureBlackTheme = 'isPureBlackTheme',
antiGoodsDyn = 'antiGoodsDyn',
antiGoodsReply = 'antiGoodsReply',
expandDynLivePanel = 'expandDynLivePanel',
// Sponsor Block
enableSponsorBlock = 'enableSponsorBlock',