mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: video page theme
mod: popscope related #459 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -542,6 +542,9 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
super.didChangeDependencies();
|
||||
VideoDetailPageV.routeObserver
|
||||
.subscribe(this, ModalRoute.of(context)! as PageRoute);
|
||||
themeData = videoDetailController.plPlayerController.darkVideoPage
|
||||
? MyApp.darkThemeData ?? Theme.of(context)
|
||||
: Theme.of(context);
|
||||
}
|
||||
|
||||
// void _handleTransition(String name) {
|
||||
@@ -1510,10 +1513,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
return childWhenDisabled;
|
||||
}
|
||||
|
||||
late final ThemeData themeData =
|
||||
videoDetailController.plPlayerController.darkVideoPage
|
||||
? MyApp.darkThemeData ?? Theme.of(context)
|
||||
: Theme.of(context);
|
||||
late ThemeData themeData;
|
||||
|
||||
Widget get child {
|
||||
if (!horizontalScreen) {
|
||||
@@ -1730,7 +1730,9 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
|
||||
Widget videoPlayer(double videoWidth, double videoHeight) {
|
||||
return PopScope(
|
||||
canPop: !isFullScreen,
|
||||
canPop: !isFullScreen &&
|
||||
(horizontalScreen ||
|
||||
MediaQuery.of(context).orientation == Orientation.portrait),
|
||||
onPopInvokedWithResult: _onPopInvokedWithResult,
|
||||
child: Stack(
|
||||
children: [
|
||||
|
||||
Reference in New Issue
Block a user