Last updated:
0 purchases
iosish shaker
iosish_shaker #
🍸 A widget that allows you to shake your widgets, just like the pin on iOS is shaked on incorrect input.
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
copied to clipboard
Example #
Create a controller
final controller = ShakerController();
copied to clipboard
Use the shaker widget
return Shaker(
controller: controller,
child: child,
);
copied to clipboard
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.
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.