通知中心封面图显示
部分界面的信息更新 缓存系统初步引入 即将进入播放列表更新
This commit is contained in:
@@ -54,10 +54,13 @@ void main() async {
|
||||
|
||||
// ⭐ 注册切歌回调:当歌曲切换时,立即更新通知
|
||||
AudioService().setOnSongChanged((song) {
|
||||
debugPrint(
|
||||
'📢 [main] song.artwork is ${song.artwork != null ? 'not null' : 'null'}');
|
||||
_audioHandler!.updateNotification(
|
||||
id: song.id,
|
||||
title: song.title,
|
||||
artist: song.artist,
|
||||
artwork: song.artwork, // ⭐ 传递封面图
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user