animated_box_decoration 0.0.2 copy "animated_box_decoration: ^0.0.2" to clipboard
animated_box_decoration: ^0.0.2 copied to clipboard

outdated

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.

Features #

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.

Usage #

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.

12
likes
0
pub points
72%
popularity

Publisher

verified publisherwenkaifan.com

Lets you smoothly animate between two BoxDecoration.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on animated_box_decoration