wave
wave copied to clipboard
Enable dynamic wave amplitude adjustments
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.