aeyrium_sensor 1.0.7

Flutter Aeyrium Sensor Plugin #

Aeyrium Sensor Plugin

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.

Import #

To use this plugin, add aeyrium_sensor as a dependency in your pubspec.yaml file. For example:

dependencies:
  aeyrium_sensor: ^1.0.7

Usage #

import 'package:aeyrium_sensor/aeyrium_sensor.dart';

AeyriumSensor.sensorEvents.listen((SensorEvent event) {
      //do something with the event , values expressed in radians
      print("Pitch ${event.pitch} and Roll ${event.roll}")
      
    });

Real Demo #

We developed this plugin to use it on our Attitude indicator screen. Aeyrium Sensor

Issues #

Please file any issues, bugs or feature request as an issue on our GitHub page.

Author #

This Aeyrium Sensor plugin for Flutter is developed by Aeyrium Inc

[1.0.5 - 1.0.7] - 12/10/2018

  • Fixed roll value calculation for iOS.

[1.0.4] - 10/02/2018

  • Values are expressed in radians instead of degrees.
  • Use AeyriumSensor.sensorEvents instead of AeyriumSensor().sensorEvents

[1.0.3] - 10/02/2018

  • Pitch value was fixed when rotate the device on iOS.

[1.0.0 - 1.0.2] - 10/01/2018

  • Get the pitch and roll from your device.

example/README.md

aeyrium_sensor_example #

Demonstrates how to use the aeyrium_sensor plugin.

Getting Started #

For help getting started with Flutter, view our online documentation.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  aeyrium_sensor: ^1.0.7

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:aeyrium_sensor/aeyrium_sensor.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
73
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
98
Overall:
Weighted score of the above. [more]
86
Learn more about scoring.

We analyzed this package on Aug 21, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19
  • Flutter: 1.7.8+hotfix.4

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Maintenance suggestions

Update README.md. (-2 points)

1 image link is insecure (e.g. http://img.youtube.com/vi/IIoa9uNka_0/0.jpg), use https URLs instead.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test
test ^1.3.0