glorylab / wave

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

Add parameter for Curve and action for AnimationStatus.completed #37

Closed AlvBarros closed 1 year ago

AlvBarros commented 3 years ago

Is your feature request related to a problem? Please describe. This suggested feature would enable customization on the wave animation cycle.

Describe the solution you'd like An enum for every possible action on AnimationStatus.completed, and an additional parameter to set the animation's Curve.

Describe alternatives you've considered Add a 'curve' parameter in WaveWidget, 'reverseOnEnd' and 'resetOnEnd'.

Additional context I've made a fork and a commit at AlvBarros/wave, and was about to create a Pull Request to this plugin. It's not the best solution, but solved my problem and I thought that I'd share.

AlvBarros commented 3 years ago

Even the 'isLoop' parameter doesn't exactly loop, since the animation is set to 'reverse' on end, instead o 'reset'

Below is a screenshot of lib/wave.dart line 265.

Captura de Tela 2021-10-29 às 15 11 46

.

AlvBarros commented 1 year ago

Closing this issue since it didn't have any progress at all.