From 3295a9da2e9028f833b808ce41dfaf232342354f Mon Sep 17 00:00:00 2001 From: orz12 Date: Mon, 29 Jul 2024 15:29:31 +0800 Subject: [PATCH] showNotify -> toast --- lib/plugin/pl_player/controller.dart | 3 +-- lib/services/audio_handler.dart | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/plugin/pl_player/controller.dart b/lib/plugin/pl_player/controller.dart index 3564bbfe9..deeceb653 100644 --- a/lib/plugin/pl_player/controller.dart +++ b/lib/plugin/pl_player/controller.dart @@ -797,8 +797,7 @@ class PlPlayerController { // }), // 媒体通知监听 onPlayerStatusChanged.listen((PlayerStatus event) { - SmartDialog.showNotify( - msg: event.toString(), notifyType: NotifyType.success); + SmartDialog.showToast(event.toString()); videoPlayerServiceHandler.onStatusChange(); }), onPositionChanged.listen((Duration event) { diff --git a/lib/services/audio_handler.dart b/lib/services/audio_handler.dart index a0da73ea5..c92873206 100644 --- a/lib/services/audio_handler.dart +++ b/lib/services/audio_handler.dart @@ -153,7 +153,7 @@ class VideoPlayerServiceHandler extends BaseAudioHandler with SeekHandler { } onVideoDetailChange(dynamic data, int cid) { - SmartDialog.showNotify(msg: data.toString(), notifyType: NotifyType.alert); + SmartDialog.showToast("onVideoDetailChange $data"); if (!enableBackgroundPlay) return; // print('当前调用栈为:'); // print(StackTrace.current);