Handle audio interruptions by default.

This commit is contained in:
Ryan Heise 2020-08-25 15:17:49 +10:00
parent 60760d1010
commit 657fd300dd
3 changed files with 13 additions and 8 deletions

View file

@ -54,7 +54,7 @@ class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
_player = AudioPlayer(handleInterruptions: true);
_player = AudioPlayer();
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
statusBarColor: Colors.black,
));