Skip to content

A flutter package for detecting phone shakes.

License

Notifications You must be signed in to change notification settings

MohamedFBoussaid/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

Packages

No packages published

Languages

  • Dart 65.0%
  • Ruby 18.0%
  • Java 9.4%
  • Swift 5.4%
  • Kotlin 1.7%
  • Objective-C 0.5%