Pacman-Flutter
Pacman-Flutter copied to clipboard
Audio is not Paused when App is Closed
Tested on Android.
Yeah, I am aware of that. If you completely close the app from background applications, then only the audio stops. Otherwise if you just dismiss it, the audio continues
A suggestion would be to make the audio player a Flutter Background Service. It will reduce the load on the foreground processing, helping with the frame rates.
Plus it will be easier to control and pause the audio in case of the app is dismissed by using AppLifeCycle.
There is AppLifeCycle Widget, didn't remember the name, this may help to manage app state and audio control.
I guess this is what you are referring to AppLifecycleState