Compare commits

..

No commits in common. "6e1aaf5acf0d707d6853048d07cda87a037457c2" and "50c2460f16494b69fc60a9c2eea632ca2273cdd8" have entirely different histories.

2 changed files with 2 additions and 7 deletions

View file

@ -129,6 +129,7 @@ class CameraContainerBloc extends EvSourceBlocBase<CameraContainerEvent, CameraC
await _cameraController!.initialize();
await _cameraController!.setFlashMode(FlashMode.off);
await _cameraController!.setFocusMode(FocusMode.locked);
_zoomRange = await Future.wait<double>([
_cameraController!.getMinZoomLevel(),
@ -205,13 +206,7 @@ class CameraContainerBloc extends EvSourceBlocBase<CameraContainerEvent, CameraC
Future<double?> _takePhoto() async {
try {
// https://github.com/flutter/flutter/issues/84957#issuecomment-1661155095
await _cameraController!.setFocusMode(FocusMode.locked);
await _cameraController!.setExposureMode(ExposureMode.locked);
final file = await _cameraController!.takePicture();
await _cameraController!.setFocusMode(FocusMode.auto);
await _cameraController!.setExposureMode(ExposureMode.auto);
final Uint8List bytes = await file.readAsBytes();
Directory(file.path).deleteSync(recursive: true);

View file

@ -1,7 +1,7 @@
name: lightmeter
description: A new Flutter project.
publish_to: "none"
version: 0.12.4+35
version: 0.12.3+34
environment:
sdk: ">=3.0.0 <4.0.0"