chore: Change way how to seek in audioplayer

This commit is contained in:
Krille 2023-10-23 15:30:26 +02:00
parent 9b523b00a6
commit 0490195f44
No known key found for this signature in database

View file

@ -223,8 +223,8 @@ class AudioPlayerState extends State<AudioPlayerWidget> {
children: [
for (var i = 0; i < AudioPlayerWidget.wavesCount; i++)
Expanded(
child: InkWell(
onTap: () => audioPlayer?.seek(
child: GestureDetector(
onTapDown: (_) => audioPlayer?.seek(
Duration(
milliseconds:
(maxPosition / AudioPlayerWidget.wavesCount)