animated_box_decoration 0.0.7 animated_box_decoration: ^0.0.7 copied to clipboard
Lets you smoothly animate between two BoxDecoration.
Lets you smoothly animate between two BoxDecoration. Specifically, lets you animate between any color, gradient or image background.
Currently the default implementation in Flutter does not support animating background (BoxDecoration) between color and gradient, two gradient with different type, and anything involving a image.
If you want to get a intermediate Decoration at progress t between the initial and final Decoration, use:
const intermediate=SmoothDecorationTween(begin: begin, end: end, t);
You can also just use the SmoothAnimatedContainer widget just as you use the AnimatedContainer widget.
Additional information #
This package primarily modifies the tweening between two BoxDecoration and focuses on making the animation of the background smooth. The animation of the shape is not implemented. But you can look at the morphable_shape package if you want that functionality.