Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-05 20:55:52 +08:00
parent 224bd88473
commit 5bf09b98f4
15 changed files with 401 additions and 340 deletions

View File

@@ -1603,8 +1603,8 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
child: FractionalTranslation(
translation: const Offset(1, -0.4),
child: Obx(
() => Visibility(
visible: plPlayerController.showControls.value,
() => Offstage(
offstage: !plPlayerController.showControls.value,
child: DecoratedBox(
decoration: const BoxDecoration(
color: Color(0x45000000),
@@ -1647,8 +1647,8 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
alignment: Alignment.centerRight,
child: FractionalTranslation(
translation: const Offset(-1, -0.4),
child: Visibility(
visible: plPlayerController.showControls.value,
child: Offstage(
offstage: !plPlayerController.showControls.value,
child: DecoratedBox(
decoration: const BoxDecoration(
color: Color(0x45000000),