mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: auto expand intro panel
Closes #47 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -171,9 +171,19 @@ class _VideoInfoState extends State<VideoInfo> 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
|
||||
|
||||
Reference in New Issue
Block a user