FM radio app- stopped playing after 5 minutes of locking the screen


I have started with my first app using flutter. The idea is to create a FM app streaming some FM radio station.

I have successfully created the app and the audio is playing without any issues.

The challenge I see is after the screen is locked the app stops playing around 5 five minutes. When i open the screen again its started resuming. I understand i have to use the PARTIAL_WAKE_LOCK of Power manager in Android but not sure how to do it from flutter.

Please provide your suggestions.