Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 454 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 454 Bytes

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.
});