light_sensor 2.0.1 copy "light_sensor: ^2.0.1" to clipboard
light_sensor: ^2.0.1 copied to clipboard

outdated

A Flutter plugin for Android allowing access to the device light sensor.

Light sensor #

A Flutter plugin for Android allowing access to the device light sensor.

Usage #

To use this plugin, add light_sensor as a dependency in your pubspec.yaml file.

Example #

// Import package
import 'package:light_sensor/light_sensor.dart';

// Init plugin:
final LightSensor _light = LightSensor();

// Subscribe on updates:
_light.lightSensorStream.listen((lux) {...});

Origin #

Originally, this plugin was based on light.
Functionality was extracted into this plugin due to lack of maintenance by the author of the light plugin.

Today, the light_sensor plugin has been completely refreshed.

5
likes
0
pub points
81%
popularity

Publisher

unverified uploader

A Flutter plugin for Android allowing access to the device light sensor.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on light_sensor