bring back remove player safearea

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-19 10:18:18 +08:00
parent e88769308e
commit 9543f3b457
10 changed files with 76 additions and 17 deletions

View File

@@ -1616,6 +1616,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
isTop: true,
controller: animationController,
isFullScreen: isFullScreen,
removeSafeArea: plPlayerController.removeSafeArea,
child: plPlayerController.isDesktopPip
? GestureDetector(
behavior: HitTestBehavior.translucent,
@@ -1628,6 +1629,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
isTop: false,
controller: animationController,
isFullScreen: isFullScreen,
removeSafeArea: plPlayerController.removeSafeArea,
child:
widget.bottomControl ??
BottomControl(
@@ -1816,6 +1818,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
if (plPlayerController.showFsLockBtn)
ViewSafeArea(
right: false,
left: !plPlayerController.removeSafeArea,
child: Align(
alignment: Alignment.centerLeft,
child: FractionalTranslation(
@@ -1859,6 +1862,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
if (plPlayerController.showFsScreenshotBtn)
ViewSafeArea(
left: false,
right: !plPlayerController.removeSafeArea,
child: Obx(
() => Align(
alignment: Alignment.centerRight,