shake 2.1.0 icon indicating copy to clipboard operation
shake: ^2.1.0 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();
117
likes
120
pub points
95%
popularity

Publisher

verified publisher iconjoshi.dev

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

Homepage

Documentation

API reference

License

Icon for licenses.BSD-2-Clause (LICENSE)

Dependencies

flutter, sensors_plus

More

Packages that depend on shake