From 03d74434d4ec7c98ed2a782f3f824641433cf4eb Mon Sep 17 00:00:00 2001 From: Gustl22 Date: Sat, 30 Jul 2022 16:03:27 +0200 Subject: [PATCH] test: release modes (fixes #28) --- .../audioplayers/example/lib/components/player_widget.dart | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/audioplayers/example/lib/components/player_widget.dart b/packages/audioplayers/example/lib/components/player_widget.dart index f4adab47a..97caeb262 100644 --- a/packages/audioplayers/example/lib/components/player_widget.dart +++ b/packages/audioplayers/example/lib/components/player_widget.dart @@ -129,11 +129,7 @@ class _PlayerWidgetState extends State { ); _playerCompleteSubscription = player.onPlayerComplete.listen((event) { - player.stop(); - setState(() { - _playerState = PlayerState.stopped; - _position = _duration; - }); + _stop(); }); _playerStateChangeSubscription =