diff --git a/lib/screens/metering/components/camera_container/bloc_container_camera.dart b/lib/screens/metering/components/camera_container/bloc_container_camera.dart index ce62fd1..eecbef2 100644 --- a/lib/screens/metering/components/camera_container/bloc_container_camera.dart +++ b/lib/screens/metering/components/camera_container/bloc_container_camera.dart @@ -217,15 +217,9 @@ class CameraContainerBloc extends EvSourceBlocBase _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 bytes = await file.readAsBytes(); Directory(file.path).deleteSync(recursive: true); - return await evFromImage(bytes); } catch (e, stackTrace) { _analytics.logCrash(e, stackTrace);