shake 0.1.0 copy "shake: ^0.1.0" to clipboard
shake: ^0.1.0 copied to clipboard

outdated

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();
199
likes
40
pub points
97%
popularity

Publisher

verified publisherjoshi.dev

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

Repository

License

BSD-2-Clause (license)

Dependencies

flutter, sensors

More

Packages that depend on shake