A Flutter plugin to access the accelerometer and gyroscope sensors.
To use this plugin, add sensors
as a dependency in your pubspec.yaml file.
import 'package:sensors/sensors.dart'; accelerometerEvents.listen((AccelerometerEvent event) { // Do something with the event. }); gyroscopeEvents.listen((GyroscopeEvent event) { // Do something with the event. });