Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-21 11:48:42 +08:00
parent 1efd62803a
commit ac60ac417b
130 changed files with 1631 additions and 2132 deletions

View File

@@ -46,11 +46,9 @@ class PlayOrPauseButtonState extends State<PlayOrPauseButton>
super.didChangeDependencies();
subscription ??= player.stream.playing.listen((event) {
if (event) {
animation.forward().then((value) => {
isOpacity = true,
});
animation.forward().whenComplete(() => {isOpacity = true});
} else {
animation.reverse().then((value) => {isOpacity = false});
animation.reverse().whenComplete(() => {isOpacity = false});
}
setState(() {});
});