diff --git a/lib/pages/interval_page.dart b/lib/pages/interval_page.dart index 973c269..3a7eabf 100644 --- a/lib/pages/interval_page.dart +++ b/lib/pages/interval_page.dart @@ -89,6 +89,7 @@ class _IntervalTimerPageState extends State { Future _playWorkoutMusic() async { await warmUpPlayer.stop(); Future.delayed(const Duration(microseconds: 600)).then((value) async { + await workoutPlayer.setReleaseMode(ReleaseMode.loop); await workoutPlayer.play(UrlSource('assets/workout.mp3')); }); } @@ -124,6 +125,7 @@ class _IntervalTimerPageState extends State { _currentDuration = _cooldownDuration; () async { await workoutPlayer.stop(); + await coolDownPlayer.setReleaseMode(ReleaseMode.loop); await coolDownPlayer.play(UrlSource('assets/cool_down.mp3')); }(); } else {