combined_animation 0.3.2 combined_animation: ^0.3.2 copied to clipboard
A combined animation widget, contains alignment, opacity, transform, size for enter and leave a widget.
A combined animation widget, contains alignment, opacity, transform, size for enter and leave a widget.
Features #
-
✅ alignment animation.
-
✅ opacity animation.
-
✅ transform animation.
-
✅ size animation.
-
✅ enter animation config.
-
✅ leave animation config.
-
✅ dismiss size animation
Preview #
Getting started #
flutter pub add combined_animation
Usage #
CombinedAnimation(
state: willRemove?
? AnimationType.end
: AnimationType.start,
controller: CombinedAnimationController(),
onEntered: () {
},
onLeaved: () {
},
dismissBuilder: (context,size){
// you can return a size box with size amination to diy dismiss animation
// or will generate a default one
}
onDismiss:(){
// if you dont remove it
// you can call controller.enter to show it again
setState(() {
doRemove(item);
});
},
config: AnimationConfig.fadeAndZoomIn,
child: child,
)