enviro_sensors: ^1.0.1 copied to clipboard
Flutter plugin for accessing enviroment sensors. unfortunately, iOS is not yet supported.
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).
- 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".