mod: 代码优化

This commit is contained in:
orz12
2024-03-01 15:55:59 +08:00
parent ba64a80bc7
commit 12ebe0ac38
4 changed files with 38 additions and 33 deletions

View File

@@ -73,10 +73,10 @@ class _PlDanmakuState extends State<PlDanmaku> {
// 播放器状态监听
void playerListener(PlayerStatus? status) {
if (status == PlayerStatus.paused) {
_controller!.pause();
_controller?.pause();
}
if (status == PlayerStatus.playing) {
_controller!.onResume();
_controller?.onResume();
}
}