shake 1.0.1
shake: ^1.0.1 copied to clipboard

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();
61
likes
120
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