shake_detector_android 0.0.4
shake_detector_android: ^0.0.4 copied to clipboard
The shake_detector_android is a Flutter plugin that allows your application to detect shake events using the device's accelerometer.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add shake_detector_androidThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
shake_detector_android: ^0.0.4Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:shake_detector_android/shake_detector_android.dart';