Skip to content
/ shake Public
forked from deven98/shake

A flutter package for detecting phone shakes.

License

Notifications You must be signed in to change notification settings

84rrry/shake

 
 

Repository files navigation

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

About

A flutter package for detecting phone shakes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 64.8%
  • Ruby 17.8%
  • Java 10.0%
  • Swift 5.3%
  • Kotlin 1.6%
  • Objective-C 0.5%