set isPlaying to false to avoid playing a stopped bgm on app resume

This commit is contained in:
Japa Alekhin Llemos
2019-09-28 13:35:31 +08:00
parent 9a5f203f45
commit 71eebd0e7a

View File

@ -47,6 +47,7 @@ class Bgm extends WidgetsBindingObserver {
/// Stops the currently playing background music track (if any).
void stop() async {
isPlaying = false;
await audioPlayer.stop();
}