audio_waveforms icon indicating copy to clipboard operation
audio_waveforms copied to clipboard

Add clipRRect parameter to WaveStyle

Open seelrd opened this issue 1 year ago • 2 comments

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 avatar Jan 11 '24 21:01 seelrd

@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 avatar Mar 14 '24 14:03 ujas-m-simformsolutions

@ujas-m-simformsolutions I needed clipRRect to be able to have border radius on wave style lines.

seelrd avatar Apr 27 '24 12:04 seelrd