opt: expand intro panel

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-24 12:03:53 +08:00
parent f29e49dc4c
commit 23ba9ad8c1
3 changed files with 19 additions and 8 deletions

View File

@@ -171,15 +171,16 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
loadingStatus = widget.loadingStatus;
enableAi = setting.get(SettingBoxKey.enableAi, defaultValue: true);
bool exapndIntroPanel = GStorage.exapndIntroPanel;
bool alwaysExapndIntroPanel = GStorage.alwaysExapndIntroPanel;
_expandableCtr = ExpandableController(
initialExpanded: exapndIntroPanel,
initialExpanded: alwaysExapndIntroPanel,
);
if (exapndIntroPanel.not) {
if (alwaysExapndIntroPanel.not && GStorage.exapndIntroPanelH) {
WidgetsBinding.instance.addPostFrameCallback((_) {
if (context.orientation == Orientation.landscape) {
if (context.orientation == Orientation.landscape &&
_expandableCtr.expanded.not) {
_expandableCtr.toggle();
}
});