1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

game_template fix up exhaustive checks (#1853)

## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [x] I updated/added relevant documentation (doc comments with `///`).
- [ ] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-devrel
channel on [Discord].

<!-- Links -->
[Flutter Style Guide]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
[CLA]: https://cla.developers.google.com/
[Discord]: https://github.com/flutter/flutter/wiki/Chat
[Contributors Guide]:
https://github.com/flutter/samples/blob/main/CONTRIBUTING.md
This commit is contained in:
Brett Morgan
2023-05-31 06:56:49 +10:00
committed by GitHub
parent 6c31477626
commit a33e0f9720
2 changed files with 3 additions and 2 deletions

View File

@@ -220,6 +220,8 @@ class AudioController {
"Music should never be 'completed' as it's either not playing "
"or looping forever.");
await _playFirstSongInPlaylist();
default:
_log.warning('Unhandled PlayerState: ${_musicPlayer.state}');
}
}