modified: lib/class/audiostate.dart

This commit is contained in:
stonegate 2020-04-02 20:36:20 +08:00
parent b6fa0be33f
commit 2a89a6eaff
1 changed files with 1 additions and 0 deletions

View File

@ -222,6 +222,7 @@ class AudioPlayerNotifier extends ChangeNotifier {
androidNotificationIcon: 'drawable/ic_notification',
enableQueue: true,
androidStopOnRemoveTask: true,
androidStopForegroundOnPause: true
);
_playerRunning = true;
if (_autoPlay) {