animated_box_decoration 0.0.7 copy "animated_box_decoration: ^0.0.7" to clipboard
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.

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
120
pub points
67%
popularity

Publisher

verified publisherwenkaifan.com

Lets you smoothly animate between two BoxDecoration.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on animated_box_decoration