enviro_sensors 1.0.1 copy "enviro_sensors: ^1.0.1" to clipboard
enviro_sensors: ^1.0.1 copied to clipboard

Flutter plugin for accessing enviroment sensors. unfortunately, iOS is not yet supported.

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".
8
likes
30
points
35
downloads

Publisher

unverified uploader

Weekly Downloads

2024.06.24 - 2025.01.06

Flutter plugin for accessing enviroment sensors. unfortunately, iOS is not yet supported.

Homepage

License

unknown (license)

Dependencies

flutter

More

Packages that depend on enviro_sensors