Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deven98/shake
A flutter package for detecting phone shakes.
https://github.com/deven98/shake
flutter flutter-package flutter-plugin
Last synced: 5 days ago
JSON representation
A flutter package for detecting phone shakes.
- Host: GitHub
- URL: https://github.com/deven98/shake
- Owner: deven98
- License: bsd-2-clause
- Created: 2019-03-24T11:30:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-29T16:18:26.000Z (3 months ago)
- Last Synced: 2024-08-01T12:17:17.601Z (3 months ago)
- Topics: flutter, flutter-package, flutter-plugin
- Language: Dart
- Size: 3.18 MB
- Stars: 93
- Watchers: 6
- Forks: 53
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# shake
A flutter package to detect phone shakes.
To listen to phone shake:
ShakeDetector detector = ShakeDetector.autoStart(
onPhoneShake: () {
// Do stuff on phone shake
}
);OR
ShakeDetector detector = ShakeDetector.waitForStart(
onPhoneShake: () {
// Do stuff on phone shake
}
);
detector.startListening();To stop listening:
detector.stopListening();