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

Enable dynamic wave amplitude adjustments #36

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

Conversation

mhstoller
Copy link

@mhstoller mhstoller commented Jun 20, 2021

With the WaveWidget inside a StreamBuilder it wasn't possible to change the waveAmplitude value based on new stream data. This change allows you to update the waveAmplitude value and have it reflected in the waves that are displayed.

This may not be the best way to achieve this behavior, but if it's useful then great!

I also haven't migrated to null safety in my own project, so I don't know the implications of what I have done here, other than that it builds without errors.

This change allows the WaveWidget's waveAmplitude property to be updated dynamically (such as in a StreamBuilder) to change the amplitude on the fly
I haven't migrated my project to null safety so I was just kind of guessing what it wanted when a build error occured
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.

1 participant