Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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();