mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-25 08:50:40 +00:00
9ffb5112c1
* wip * rename * wip * rename * fixed camera screen layout * omit camera measure on startup * added calibration for light sensor * save evsource * Update widget_button_measure.dart * fixed iOS init * hide light sensor calibration on ios * cleanup
9 lines
245 B
Dart
9 lines
245 B
Dart
import 'package:light_sensor/light_sensor.dart';
|
|
|
|
class LightSensorService {
|
|
const LightSensorService();
|
|
|
|
Future<bool> hasSensor() async => await LightSensor.hasSensor ?? false;
|
|
|
|
Stream<int> luxStream() => LightSensor.lightSensorStream;
|
|
}
|