-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3591561
commit 137cbb7
Showing
4 changed files
with
42 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,42 @@ | ||
# Aeyrium Sensor | ||
|
||
Flutter plugin for get the Pitch and Roll on Android and iOS. It's using TYPE_ROTATION_VECTOR sensor on Android and DeviceMotion on iOS. | ||
# Flutter Aeyrium Sensor Plugin | ||
|
||
## Getting Started | ||
[Aeyrium Sensor Plugin](https://pub.dartlang.org/packages/aeyrium_sensor) | ||
|
||
For help getting started with Flutter, view our online | ||
[documentation](https://flutter.io/). | ||
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. | ||
|
||
For help on editing plugin code, view the [documentation](https://flutter.io/developing-packages/#edit-plugin-package). | ||
## Usage | ||
|
||
To use this plugin, add `aeyrium_sensor` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/). For example: | ||
|
||
```yaml | ||
dependencies: | ||
aeyrium_sensor: ^1.0.0 | ||
``` | ||
## Usage | ||
``` dart | ||
import 'package:aeyrium_sensor/aeyrium_sensor.dart'; | ||
|
||
AeyriumSensor().sensorEvents.listen((SensorEvent event) { | ||
//do something with the event | ||
print("Pitch ${event.pitch} and Roll ${event.roll}") | ||
|
||
}); | ||
|
||
``` | ||
|
||
## Real Demo | ||
|
||
We developed this plugin to use it on our Attitude indicator screen. | ||
[![Aeyrium Sensor](http://img.youtube.com/vi/IIoa9uNka_0/0.jpg)](http://www.youtube.com/watch?v=IIoa9uNka_0 "Attitude indicator") | ||
|
||
|
||
## Issues | ||
|
||
Please file any issues, bugs or feature request as an issue on our [GitHub](https://github.com/aeyrium/aeyrium-sensor/issues) page. | ||
|
||
## Author | ||
|
||
This Aeyrium Sensor plugin for Flutter is developed by [Aeyrium Inc](https://aeyrium.com) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters