combined_animation 0.2.0
combined_animation: ^0.2.0 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.
-
✅ dissmiss size animation
Preview #
[preview]
Getting started #
flutter pub add combined_animation
Usage #
CombinedAnimation(
state: willRemove?
? AnimationType.end
: AnimationType.start,
onAttachController: (controller) {
// controller.leave()
},
onEntered: () {
},
onLeaved: (size) {
// you can return a size box with size amination to diy dissmiss animation
// or will generate a default one
},
onDissmiss:(){
// if you dont remove it
// you can call controller.enter to show it again
setState(() {
doRemove(item);
});
},
config: AnimationConfig.fadeAndZoomIn,
child: child,
)
Produce #
[Produce]