Skip to content

Commit

Permalink
Update just_audio to 0.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanheise committed May 4, 2020
1 parent 88567d7 commit 7b7590a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,9 @@ class AudioPlayerTask extends BackgroundAudioTask {
}

@override
void onStop() {
_audioPlayer.stop();
Future<void> onStop() async {
await _audioPlayer.stop();
await _audioPlayer.dispose();
_setState(state: BasicPlaybackState.stopped);
_completer.complete();
}
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies:
sdk: flutter

path_provider: ^1.5.1
just_audio: ^0.1.6
just_audio: ^0.1.8
flutter_tts: ^0.8.5
rxdart: ^0.24.0
audio_service:
Expand Down

0 comments on commit 7b7590a

Please sign in to comment.