How to play different animations when a button is tapped depending on the current state?
I have a widget that is using a GestureDetector and AnimatedBuilder to play an animation when the button is tapped. I can play a single animation without issue. What I want to do is be able to play three different animations on the button (different colors, different duration) depending on the state. Ex; If State… Read More How to play different animations when a button is tapped depending on the current state?