部分逻辑抓包到位,button的问题很简单,把映射目录改回去就行了
This commit is contained in:
@@ -20,20 +20,20 @@ class PlaybackStateManager {
|
||||
// lib/audio/playback_state_manager.dart
|
||||
audio_service.PlaybackState get playbackState {
|
||||
final playControl = audio_service.MediaControl(
|
||||
androidIcon: _playing ? 'ic_pause' : 'ic_play',
|
||||
androidIcon: _playing ? 'drawable/ic_pause' : 'drawable/ic_play',
|
||||
label: _playing ? '暂停' : '播放',
|
||||
action: audio_service.MediaAction.playPause,
|
||||
);
|
||||
|
||||
final controls = [
|
||||
audio_service.MediaControl(
|
||||
androidIcon: 'ic_previous', // 上一首
|
||||
androidIcon: 'drawable/ic_previous', // 上一首
|
||||
label: '上一曲',
|
||||
action: audio_service.MediaAction.skipToPrevious,
|
||||
),
|
||||
playControl,
|
||||
audio_service.MediaControl(
|
||||
androidIcon: 'ic_next', // 下一首
|
||||
androidIcon: 'drawable/ic_next', // 下一首
|
||||
label: '下一曲',
|
||||
action: audio_service.MediaAction.skipToNext,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user