tdk_bouncingwidget 1.0.1 copy "tdk_bouncingwidget: ^1.0.1" to clipboard
tdk_bouncingwidget: ^1.0.1 copied to clipboard

outdated

A bouncing animation flutter package for widgets. A widget can have three types of animation BounceIn, BounceOut and BounceInAndOut

Want to animate your widgets (like containers, cards etc...) bouncing In and out while clicking? Here is the package for that.

Features #

This package contains a widget, where you need to wrap your own widgets ( like container, cards ect...) to animate them bounce in and out while clicking.

bouncing_widget_example

Getting started #

Just wrap your widget inside BouncingWidgetInOut widget as shown below and we are done!!

BouncingWidgetInOut(
    onPressed: () {},
    bouncingType: BouncingType.bounceInAndOut,
    child : Container(
        height: 60,
        width: 200,
        child: const Text('click to bounce')
    ))

There is one optional parameter called "bouncingType" which specifies the bouncing type of the widget. That is "Bouncing In only" or "Bouncing out Only" or both "Bouncing In and Out". By default bouncingType is "bounceInOnly".

bounceInOnly => Widget will shrink and grow based on scale factor value.

bounceOutOnly => Widget will grow and shrink based on scale factor value.

bounceInAndOut => Widget will shrink and grow first and then it will grow and shrink based on the scale factor value.

You can even customize the bouncing animation by giving duration how much time your widgets needs to animate and how large and small your widget should grow/shrink by giving scale factor value.

Additional information #

Feel free to raise an issue if anything breaking, I will try to fix that ASAP. Github link mentioned above. Thanks!

13
likes
0
pub points
75%
popularity

Publisher

unverified uploader

A bouncing animation flutter package for widgets. A widget can have three types of animation BounceIn, BounceOut and BounceInAndOut

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on tdk_bouncingwidget