mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-25 11:36:45 +08:00
opt marquee
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user