audio_waveforms
audio_waveforms copied to clipboard
Waveform scroll gesture can't begin with swipe to left
I've noticed this strange behaviour where I can only begin with a swipe-right gesture to scroll through the waveform. I can swipe left but only if I begin the gesture with a swipe to the right. Below is the AudioWaveforms widget, let me know if you need the full code snippet. I have also attached a recording of this behaviour.
AudioWaveforms(
enableGesture: true,
size: const Size(double.infinity, 80.0),
waveStyle: const WaveStyle(
showMiddleLine: false,
waveThickness: 4,
),
recorderController: recorderController,
)
@william-herring Let's say we are allowing left swipe when waveforms are in the initial state. In the initial state, waves are at the middle of the screen if the extendWaveform
flag is set false else they will be at the start of the viewport at the right side. Now, when you left swipe waves will start going outside of the viewport from the beginning so allowing waves to go outside of the viewport doesn't make sense.
Do let us know if this clears things up.
And you have mistakenly provided an image instead of video file, for clearing your point can you please share the video