mod: update def settings

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-05 23:27:25 +08:00
parent 8ae92b859f
commit 22e6e19500
3 changed files with 5 additions and 4 deletions

View File

@@ -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,

View File

@@ -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();
} }

View File

@@ -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;