mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: 代码优化
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user