Skip to content
A flutter package for detecting phone shakes.
Dart Java
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
android Initial commit Mar 24, 2019
doc/api Dartdoc. Mar 24, 2019
example/lib Added examples and README. Mar 24, 2019
lib Null checks and documentation. Mar 24, 2019
test Initial commit Mar 24, 2019
.flutter-plugins Initial commit Mar 24, 2019
.gitignore Initial commit Mar 24, 2019
.metadata Initial commit Mar 24, 2019
CHANGELOG.md Initial commit Mar 24, 2019
LICENSE Initial commit Mar 24, 2019
README.md Added examples and README. Mar 24, 2019
pubspec.lock Initial commit Mar 24, 2019
pubspec.yaml Initial commit Mar 24, 2019
shake.iml Initial commit Mar 24, 2019

README.md

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();
You can’t perform that action at this time.