feat: 新增播放页默认展示评论区设置

This commit is contained in:
orz12
2024-04-04 10:55:43 +08:00
parent 61996b1391
commit 7d358bea1a
3 changed files with 12 additions and 2 deletions

View File

@@ -110,7 +110,10 @@ class VideoDetailController extends GetxController
videoItem['pic'] = argMap['pic'];
}
}
tabCtr = TabController(length: 2, vsync: this);
bool defaultShowComment =
setting.get(SettingBoxKey.defaultShowComment, defaultValue: false);
tabCtr = TabController(
length: 2, vsync: this, initialIndex: defaultShowComment ? 1 : 0);
autoPlay.value =
setting.get(SettingBoxKey.autoPlayEnable, defaultValue: true);
enableHA.value = setting.get(SettingBoxKey.enableHA, defaultValue: true);