sensors 0.3.4 sensors: ^0.3.4 copied to clipboard
Flutter plugin for accessing the Android and iOS accelerometer and gyroscope sensors.
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.
});