From a9a80464c68894a9ce9af29c21dfc423c736857f Mon Sep 17 00:00:00 2001 From: Julian Hartl Date: Wed, 11 Jan 2023 12:27:09 +0100 Subject: [PATCH] trigger workflow --- lib/src/controller/camera_controller_impl.dart | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/src/controller/camera_controller_impl.dart b/lib/src/controller/camera_controller_impl.dart index 23059a8..60510e5 100644 --- a/lib/src/controller/camera_controller_impl.dart +++ b/lib/src/controller/camera_controller_impl.dart @@ -113,11 +113,14 @@ class CameraControllerImpl implements CameraController { final cameraImage = CameraImage.fromJson(Map.from(response['image'])); final imageFile = File( - join(temporaryDirPath, '${clock.now().millisecondsSinceEpoch}.jpg')); + join( + temporaryDirPath, + '${clock.now().millisecondsSinceEpoch}.jpg', + ), + ); await imageFile.create(recursive: true); - final imageBuilder = ImageBuilder.fromCameraImage(cameraImage) - .rotate(90) - .flipHorizontally(); + final imageBuilder = + ImageBuilder.fromCameraImage(cameraImage).rotate(90).flipHorizontally(); final bytes = imageBuilder.asJpg(); final writtenFile = (await imageFile.writeAsBytes(bytes)); final path = writtenFile.path;