barbadose / enviro_sensors

A flutter plugin exposing streams to android and iOS enviroment sensors (temp, light, pressure, humidty)

Home Page:https://pub.dev/packages/enviro_sensors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

enviro_sensors


A plugin that enables calling native device enviroment sensors. Readings are sent over an EventChannel and can be accessed with a listener to a Dart Stream.

Currently, only android enviroment sensors streams are implemented.

Getting Started


Install the package. Add import (i.e. import 'package:enviro_sensors/enviro_sensors.dart';) Instantiate an appropriate stream (baromterEvents, lightmeterEvents, ambientTempEvents, humidityEvents) Readings are received as doubles in their corresponding measurement units, and can be accessed in the ".reading" property of each event. (see Example/lib/main.dart for more).

TODO:


  • improve the interface for barometerEvents stream, add way to change SENSOR_DELAY if the device enables it.
  • add barometerEvents stream on iOS.
  • write docs and improve "example".

About

A flutter plugin exposing streams to android and iOS enviroment sensors (temp, light, pressure, humidty)

https://pub.dev/packages/enviro_sensors

License:Other


Languages

Language:Dart 57.0%Language:Java 31.1%Language:Objective-C 7.4%Language:Ruby 4.4%