audio_waveforms
audio_waveforms copied to clipboard
Add clipRRect parameter to WaveStyle
With this, you can provide an RRect to clip paint with to WaveStyle. For example:
AudioWaveforms(
size: Size(MediaQuery.of(context).size.width, 200.0),
recorderController: recorderController,
waveStyle: WaveStyle(
clipRRect: RRect.fromLTRBR(0, 0, MediaQuery.of(context).size.width,
200, const Radius.circular(18)),
),
);
This way waveforms can be painted inside a rectangle with border radius.
@seelrd Thanks for your contribution. Can you please share what issue you were facing? Also, if it was with labels then you can pass durationLinesHeight
to change height of the line height.
@ujas-m-simformsolutions
I needed clipRRect
to be able to have border radius on wave style lines.