From 46e2c8342f60df28618621413b2baa31c5b46406 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Sat, 6 Apr 2024 18:48:29 +0200 Subject: [PATCH] removed focus & exposure fix --- .../components/camera_container/bloc_container_camera.dart | 6 ------ 1 file changed, 6 deletions(-) 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);