combined_animation 0.1.1
combined_animation: ^0.1.1 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,
onEntered: (controller) {
// controller.leave()
},
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]