Skip to content

Commit 23a0cee

Browse files
committed
Add stop button to example.
1 parent 62fedaa commit 23a0cee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

just_audio/example/lib/main.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,11 @@ class ControlButtons extends StatelessWidget {
185185
}
186186
},
187187
),
188+
IconButton(
189+
icon: const Icon(Icons.stop),
190+
iconSize: 64.0,
191+
onPressed: player.stop,
192+
),
188193
// Opens speed slider dialog
189194
StreamBuilder<double>(
190195
stream: player.speedStream,

0 commit comments

Comments
 (0)