Skip to content

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