iosish_shaker 1.0.0 copy "iosish_shaker: ^1.0.0" to clipboard
iosish_shaker: ^1.0.0 copied to clipboard

A widget that allows you to shake your widgets, just like the pin on iOS is shaked on incorrect input.

iosish_shaker pub version #

🍸 A widget that allows you to shake your widgets, just like the pin on iOS is shaked on incorrect input.

Example

Why? #

I use this exact animation pretty often. So instead of recreating it every time, I decided to move it to a separate package.

How to use #

Install it: #

dependencies:
  iosish_shaker: ^1.0.0

Example #

Create a controller

final controller = ShakerController();

Use the shaker widget

return Shaker(
  controller: controller,
  child: child,
);

Shake, shake, shake!

await controller.shake();

// The future is released when the animation is completed.
// So you can perform some action right after if you want to.
1
likes
150
points
61
downloads

Publisher

unverified uploader

Weekly Downloads

A widget that allows you to shake your widgets, just like the pin on iOS is shaked on incorrect input.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on iosish_shaker