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