blob: fdd450217487353745d8102a1d114f93097dd8ab [file] [log] [blame] [view]
# 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](https://flutter.io/platform-plugins/).
### Example
``` dart
import 'package:sensors/sensors.dart';
accelerometerEvents.listen((AccelerometerEvent event) {
// Do something with the event.
});
gyroscopeEvents.listen((GyroscopeEvent event) {
// Do something with the event.
});
```