mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-19 16:46:22 +08:00
@@ -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(() {});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user