audio_waveforms
audio_waveforms copied to clipboard
Implemented: Move playhead position with waveform gesture `onTapDown`
I've implemented it, but have no idea how to make PR's (or operate git). Could this be considered?
When enableSeekGesture is set as true, this will move the playhead position even when playback is paused or stopped. Currently only moves playhead position whilst in a playing state.
audio_file_waveform.dart L214
onTapDown: (details) async {
if (widget.enableSeekGesture) {
final _maxDuration = await widget.playerController.getDuration();
_audioProgress = details.localPosition.dx / widget.size.width;
setState(() {});
}
},
Cheers
@p4-k4 thank you for your suggestion. Your implemention works for only WaveformType.fitWidth so I will update the logic and will create a PR
Any news about this update ?
@ujas-m-simformsolutions any updates