Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clipRRect parameter to WaveStyle #258

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

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