Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nivisi/iosish_shaker
🍸 A widget that allows you to shake your widgets, just like the pin on iOS is shaked on incorrect input.
https://github.com/nivisi/iosish_shaker
animation cupertino dart flutter flutter-widget ios package plugin shake
Last synced: 16 days ago
JSON representation
🍸 A widget that allows you to shake your widgets, just like the pin on iOS is shaked on incorrect input.
- Host: GitHub
- URL: https://github.com/nivisi/iosish_shaker
- Owner: nivisi
- License: mit
- Created: 2023-01-20T17:08:58.000Z (almost 2 years ago)
- Default Branch: develop
- Last Pushed: 2023-01-20T17:59:13.000Z (almost 2 years ago)
- Last Synced: 2024-08-14T09:21:07.176Z (5 months ago)
- Topics: animation, cupertino, dart, flutter, flutter-widget, ios, package, plugin, shake
- Language: Dart
- Homepage: https://pub.dev/packages/iosish_shaker
- Size: 476 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# iosish_shaker [![pub version][pub-version-img]][pub-version-url]
🍸 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
```### Example
#### Create a controller
```dart
final controller = ShakerController();
```#### Use the shaker widget
```dart
return Shaker(
controller: controller,
child: child,
);
```#### Shake, shake, shake!
```dart
await controller.shake();// The future is released when the animation is completed.
// So you can perform some action right after if you want to.
```[pub-version-img]: https://img.shields.io/badge/pub-v1.0.0-0175c2?logo=flutter
[pub-version-url]: https://pub.dev/packages/iosish_shaker