feat: custom expand intro panel

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-23 18:03:01 +08:00
parent dffea51223
commit a8d40b4aea
3 changed files with 23 additions and 1 deletions

View File

@@ -229,6 +229,12 @@ class _ExtraSettingState extends State<ExtraSetting> {
setKey: SettingBoxKey.showRelatedVideo,
defaultVal: true,
),
SetSwitchItem(
title: '默认展开视频简介',
leading: Icon(Icons.expand_more),
setKey: SettingBoxKey.exapndIntroPanel,
defaultVal: false,
),
Obx(
() => ListTile(
enableFeedback: true,

View File

@@ -158,7 +158,7 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
late final _coinKey = GlobalKey<ActionItemState>();
late final _favKey = GlobalKey<ActionItemState>();
final _expandableCtr = ExpandableController(initialExpanded: false);
late final ExpandableController _expandableCtr;
@override
void initState() {
@@ -170,6 +170,10 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
loadingStatus = widget.loadingStatus;
enableAi = setting.get(SettingBoxKey.enableAi, defaultValue: true);
_expandableCtr = ExpandableController(
initialExpanded: GStorage.exapndIntroPanel,
);
}
@override