From 3e5587a365d6de950bff228838055140a74e4743 Mon Sep 17 00:00:00 2001 From: Vadim Date: Sun, 7 May 2023 12:03:23 +0200 Subject: [PATCH] log exif keys --- .../camera_container/bloc_container_camera.dart | 14 ++++++++------ 1 file changed, 8 insertions(+), 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 75bb6e8..d1e79fa 100644 --- a/lib/screens/metering/components/camera_container/bloc_container_camera.dart +++ b/lib/screens/metering/components/camera_container/bloc_container_camera.dart @@ -1,6 +1,7 @@ import 'dart:async'; +import 'dart:developer'; import 'dart:io'; -import 'dart:math'; +import 'dart:math' as math; import 'dart:typed_data'; import 'package:camera/camera.dart'; @@ -123,7 +124,7 @@ class CameraContainerBloc extends EvSourceBlocBase([ _cameraController!.getMinZoomLevel(), _cameraController!.getMaxZoomLevel(), - ]).then((levels) => RangeValues(levels[0], min(_maxZoom, levels[1]))); + ]).then((levels) => RangeValues(levels[0], math.min(_maxZoom, levels[1]))); _currentZoom = _zoomRange!.start; _exposureOffsetRange = await Future.wait([ @@ -131,8 +132,8 @@ class CameraContainerBloc extends EvSourceBlocBase RangeValues( - max(_exposureMaxRange.start, levels[0]), - min(_exposureMaxRange.end, levels[1]), + math.max(_exposureMaxRange.start, levels[0]), + math.min(_exposureMaxRange.end, levels[1]), ), ); await _cameraController!.getExposureOffsetStepSize().then((value) { @@ -192,15 +193,16 @@ class CameraContainerBloc extends EvSourceBlocBase