diff --git a/lib/pages/video/detail/introduction/view.dart b/lib/pages/video/detail/introduction/view.dart index f7c1182a..03cc353e 100644 --- a/lib/pages/video/detail/introduction/view.dart +++ b/lib/pages/video/detail/introduction/view.dart @@ -171,9 +171,19 @@ class _VideoInfoState extends State with TickerProviderStateMixin { loadingStatus = widget.loadingStatus; enableAi = setting.get(SettingBoxKey.enableAi, defaultValue: true); + bool exapndIntroPanel = GStorage.exapndIntroPanel; + _expandableCtr = ExpandableController( - initialExpanded: GStorage.exapndIntroPanel, + initialExpanded: exapndIntroPanel, ); + + if (exapndIntroPanel.not) { + WidgetsBinding.instance.addPostFrameCallback((_) { + if (context.orientation == Orientation.landscape) { + _expandableCtr.toggle(); + } + }); + } } @override