Skip to content

jakusb/animated_box_decoration

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 67.8%
  • C++ 17.9%
  • CMake 8.8%
  • HTML 4.2%
  • C 0.8%
  • Swift 0.4%
  • Other 0.1%