Handle audio interruptions by default.
This commit is contained in:
parent
60760d1010
commit
657fd300dd
3 changed files with 13 additions and 8 deletions
|
@ -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,
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue