combined_animation 0.4.1 copy "combined_animation: ^0.4.1" to clipboard
combined_animation: ^0.4.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.

  • ✅ dismiss size animation

Preview #

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,
)

Produce #

Produce

4
likes
160
pub points
7%
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

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on combined_animation