glorylab / wave

A Flutter package for displaying waves.
https://wave.glorylab.xyz
MIT License
1.11k stars 96 forks source link

Enable dynamic wave amplitude adjustments #35

Closed mhstoller closed 3 years ago

mhstoller commented 3 years ago

Explain the details for making this change. What existing problem does the pull request solve?

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!

mhstoller commented 3 years ago

I have null safety problems to figure out