combined_animation 0.2.0 copy "combined_animation: ^0.2.0" to clipboard
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

3
likes
0
pub points
6%
popularity

Publisher

verified publishershirne.com

A combined animation widget, contains alignment, opacity, transform, size for enter and leave a widget.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on combined_animation