shake_plus 1.0.0 copy "shake_plus: ^1.0.0" to clipboard
shake_plus: ^1.0.0 copied to clipboard

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

shake_plus #

A flutter package to detect phone shakes. Updated package using version sensors_plus: ^6.1.0.

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();
0
likes
150
points
24
downloads

Publisher

verified publishertguzel.dev

Weekly Downloads

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, sensors_plus

More

Packages that depend on shake_plus