shake 0.1.0

Flutter Android iOS

A flutter package to detect phone shakes. Adjustable G-force and reset periods.

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();
23
likes
100
pub points
92%
popularity

Publisher

joshi.dev

A flutter package to detect phone shakes. Adjustable G-force and reset periods.

Homepage

Documentation

API reference

License

BSD (LICENSE)

Dependencies

flutter, sensors

More

Packages that depend on shake