# light_sensor **Repository Path**: simplelove520/light_sensor ## Basic Information - **Project Name**: light_sensor - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-01-04 - **Last Updated**: 2026-01-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Light sensor ![Coverage](coverage_badge.svg) 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](https://flutter.io/platform-plugins/). ## Example ```dart // Import package import 'package:light_sensor/light_sensor.dart'; // Check sensor availability final bool hasSensor = await LightSensor.hasSensor(); // Subscribe on updates LightSensor.luxStream().listen((lux) {...}); ``` ## Origin Originally, this plugin was based on [`light`](https://pub.dev/packages/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.