A Flutter sensor plugin which provide easy access to the Pitch and Roll on Android and iOS devices. It was made using TYPE_ROTATION_VECTOR sensor on Android and DeviceMotion on iOS.
To use this plugin, addaeyrium_sensor
as adependency in your pubspec.yaml file.For example:
dependencies:
aeyrium_sensor:^1.0.7
import'package:aeyrium_sensor/aeyrium_sensor.dart';
AeyriumSensor.sensorEvents.listen((SensorEventevent) {
//do something with the event, values expressed in radians
print("Pitch ${event.pitch} and Roll ${event.roll} ")
});
We developed this plugin to use it on our Attitude indicator screen.
Please file any issues, bugs or feature request as an issue on ourGitHubpage.
This Aeyrium Sensor plugin for Flutter is developed byAeyrium Inc