From c777bdb68e9250c221aafd556d5dfb090ffc34f4 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Sun, 29 Jan 2023 18:17:17 +0300 Subject: [PATCH] omit camera measure on startup --- .../camera_container/bloc_container_camera.dart | 9 ++------- 1 file changed, 2 insertions(+), 7 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 f78752d..7b96855 100644 --- a/lib/screens/metering/components/camera_container/bloc_container_camera.dart +++ b/lib/screens/metering/components/camera_container/bloc_container_camera.dart @@ -54,8 +54,8 @@ class CameraContainerBloc extends EvSourceBlocBase close() async { WidgetsBinding.instance.removeObserver(_observer); - _cameraController?.dispose(); - super.close(); + unawaited(_cameraController?.dispose()); + return super.close(); } @override @@ -110,11 +110,6 @@ class CameraContainerBloc extends EvSourceBlocBase