tree: 75420a41e9b2a59c4e43a3960eab3e8e701d56bb [path history] [tgz]
  1. android/
  2. example/
  3. ios/
  4. lib/
  5. .gitignore
  6. CHANGELOG.md
  7. LICENSE
  8. pubspec.yaml
  9. README.md
packages/sensors/README.md

sensors

A Flutter plugin to access the accelerometer and gyroscope sensors.

Usage

To use this plugin, add sensors as a dependency in your pubspec.yaml file.

Example

import 'package:sensors/sensors.dart';

accelerometerEvents.listen((AccelerometerEvent event) {
 // Do something with the event.
});

gyroscopeEvents.listen((GyroscopeEvent event) {
 // Do something with the event.
});