opt marquee

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-02 18:33:33 +08:00
parent 498ab2818e
commit f8226fcade
5 changed files with 112 additions and 73 deletions

View File

@@ -176,7 +176,23 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
super.initState();
_controlsListener = plPlayerController.showControls.listen((bool val) {
final visible = val && !plPlayerController.controlsLock.value;
visible ? animationController.forward() : animationController.reverse();
if (visible) {
animationController.forward();
widget
.videoDetailController
?.headerCtrKey
.currentState
?.marqueeController
?.start();
} else {
animationController.reverse();
widget
.videoDetailController
?.headerCtrKey
.currentState
?.marqueeController
?.stop();
}
});
animationController = AnimationController(
vsync: this,