shake 2.2.0 copy "shake: ^2.2.0" to clipboard
shake: ^2.2.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();
200
likes
140
points
40.2k
downloads

Publisher

verified publisherjoshi.dev

Weekly Downloads

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

Repository

Documentation

API reference

License

BSD-2-Clause (license)

Dependencies

flutter, sensors_plus

More

Packages that depend on shake