galli_motion_sensors
Flutter plugin for accessing the Android and iOS accelerometer, gyroscope, magnetometer and orientation sensors.
Getting Started
To use this plugin, add galli_motion_sensors
as a dependency in your pubspec.yaml
file.
dependencies:
galli_motion_sensors: ${latest_version}
Import to your project.
import 'package:galli_motion_sensors/galli_motion_sensors.dart';
motionSensors.magnetometer.listen((MagnetometerEvent event) {
print(event);
});
Screenshot
![](https://github.com/zesage/galli_motion_sensors/raw/master/screenshot.png)