chore: dispose audio player between questions
by adding a valuekey, so that the audio stops playing during next question
This commit is contained in:
parent
ce83b928cb
commit
c1b18ab29c
1 changed files with 1 additions and 0 deletions
|
|
@ -247,6 +247,7 @@ class _AnalyticsPracticeCenterContent extends StatelessWidget {
|
|||
child: Center(
|
||||
child: AudioPlayerWidget(
|
||||
null,
|
||||
key: ValueKey('audio_${activity.eventId}'),
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
linkColor: Theme.of(context).colorScheme.secondary,
|
||||
fontSize:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue