Skip to content

Conversation

seelrd
Copy link

@seelrd seelrd commented Jan 11, 2024

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.

@ujas-m-simformsolutions
Copy link
Collaborator

@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.

@seelrd
Copy link
Author

seelrd commented Apr 27, 2024

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

hemantbeast added a commit to hemantbeast/audio_waveforms that referenced this pull request May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants