mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
mod: add expand dyn live panel option
Closes #302 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -34,7 +34,7 @@ class DynamicsController extends GetxController
|
|||||||
int allFollowedUpsTotal = 0;
|
int allFollowedUpsTotal = 0;
|
||||||
|
|
||||||
late int currentMid = -1;
|
late int currentMid = -1;
|
||||||
late bool showLiveItems = false;
|
late bool showLiveItems = GStorage.expandDynLivePanel;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void onInit() {
|
void onInit() {
|
||||||
|
|||||||
@@ -258,6 +258,13 @@ List<SettingsModel> get styleSettings => [
|
|||||||
setKey: SettingBoxKey.dynamicsShowAllFollowedUp,
|
setKey: SettingBoxKey.dynamicsShowAllFollowedUp,
|
||||||
defaultVal: false,
|
defaultVal: false,
|
||||||
),
|
),
|
||||||
|
SettingsModel(
|
||||||
|
settingsType: SettingsType.sw1tch,
|
||||||
|
title: '动态页展开正在直播UP列表',
|
||||||
|
leading: Icon(Icons.live_tv),
|
||||||
|
setKey: SettingBoxKey.expandDynLivePanel,
|
||||||
|
defaultVal: false,
|
||||||
|
),
|
||||||
SettingsModel(
|
SettingsModel(
|
||||||
settingsType: SettingsType.normal,
|
settingsType: SettingsType.normal,
|
||||||
onTap: (setState) async {
|
onTap: (setState) async {
|
||||||
|
|||||||
@@ -384,6 +384,9 @@ class GStorage {
|
|||||||
static bool get antiGoodsReply =>
|
static bool get antiGoodsReply =>
|
||||||
GStorage.setting.get(SettingBoxKey.antiGoodsReply, defaultValue: false);
|
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
|
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]));
|
||||||
|
|
||||||
@@ -621,6 +624,7 @@ class SettingBoxKey {
|
|||||||
isPureBlackTheme = 'isPureBlackTheme',
|
isPureBlackTheme = 'isPureBlackTheme',
|
||||||
antiGoodsDyn = 'antiGoodsDyn',
|
antiGoodsDyn = 'antiGoodsDyn',
|
||||||
antiGoodsReply = 'antiGoodsReply',
|
antiGoodsReply = 'antiGoodsReply',
|
||||||
|
expandDynLivePanel = 'expandDynLivePanel',
|
||||||
|
|
||||||
// Sponsor Block
|
// Sponsor Block
|
||||||
enableSponsorBlock = 'enableSponsorBlock',
|
enableSponsorBlock = 'enableSponsorBlock',
|
||||||
|
|||||||
Reference in New Issue
Block a user