๐ธ A widget that allows you to shake your widgets, just like the pin on iOS is shaked on incorrect input.
I use this exact animation pretty often. So instead of recreating it every time, I decided to move it to a separate package.
dependencies:
iosish_shaker: ^1.0.0
final controller = ShakerController();
return Shaker(
controller: controller,
child: child,
);
await controller.shake();
// The future is released when the animation is completed.
// So you can perform some action right after if you want to.