mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: update def settings
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -642,7 +642,7 @@ List<SettingsModel> get playSettings => [
|
|||||||
subtitle: '展示同时在看人数',
|
subtitle: '展示同时在看人数',
|
||||||
leading: Icon(Icons.people_outlined),
|
leading: Icon(Icons.people_outlined),
|
||||||
setKey: SettingBoxKey.enableOnlineTotal,
|
setKey: SettingBoxKey.enableOnlineTotal,
|
||||||
defaultVal: true,
|
defaultVal: false,
|
||||||
),
|
),
|
||||||
SettingsModel(
|
SettingsModel(
|
||||||
settingsType: SettingsType.normal,
|
settingsType: SettingsType.normal,
|
||||||
@@ -1636,7 +1636,7 @@ List<SettingsModel> get extraSettings => [
|
|||||||
subtitle: '视频详情页开启AI总结',
|
subtitle: '视频详情页开启AI总结',
|
||||||
leading: Icon(Icons.engineering_outlined),
|
leading: Icon(Icons.engineering_outlined),
|
||||||
setKey: SettingBoxKey.enableAi,
|
setKey: SettingBoxKey.enableAi,
|
||||||
defaultVal: true,
|
defaultVal: false,
|
||||||
),
|
),
|
||||||
SettingsModel(
|
SettingsModel(
|
||||||
settingsType: SettingsType.sw1tch,
|
settingsType: SettingsType.sw1tch,
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ class VideoIntroController extends GetxController
|
|||||||
userLogin = userInfo != null;
|
userLogin = userInfo != null;
|
||||||
lastPlayCid.value = int.parse(Get.parameters['cid']!);
|
lastPlayCid.value = int.parse(Get.parameters['cid']!);
|
||||||
isShowOnlineTotal = GStorage.setting
|
isShowOnlineTotal = GStorage.setting
|
||||||
.get(SettingBoxKey.enableOnlineTotal, defaultValue: true);
|
.get(SettingBoxKey.enableOnlineTotal, defaultValue: false);
|
||||||
startTimer();
|
startTimer();
|
||||||
queryVideoIntro();
|
queryVideoIntro();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -152,7 +152,8 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
|||||||
videoDetailCtr = Get.find<VideoDetailController>(tag: widget.heroTag);
|
videoDetailCtr = Get.find<VideoDetailController>(tag: widget.heroTag);
|
||||||
videoItem = videoIntroController.videoItem!;
|
videoItem = videoIntroController.videoItem!;
|
||||||
|
|
||||||
enableAi = GStorage.setting.get(SettingBoxKey.enableAi, defaultValue: true);
|
enableAi =
|
||||||
|
GStorage.setting.get(SettingBoxKey.enableAi, defaultValue: false);
|
||||||
|
|
||||||
if (videoIntroController.expandableCtr == null) {
|
if (videoIntroController.expandableCtr == null) {
|
||||||
bool alwaysExapndIntroPanel = GStorage.alwaysExapndIntroPanel;
|
bool alwaysExapndIntroPanel = GStorage.alwaysExapndIntroPanel;
|
||||||
|
|||||||
Reference in New Issue
Block a user