From 87ef33aeb4a96f9da59e964bc62199604555d8c7 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos <6349682+vaind@users.noreply.github.com> Date: Tue, 6 Aug 2024 21:32:16 +0200 Subject: [PATCH] Update flutter/lib/src/native/cocoa/sentry_native_cocoa.dart Co-authored-by: Giancarlo Buenaflor --- flutter/lib/src/native/cocoa/sentry_native_cocoa.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter/lib/src/native/cocoa/sentry_native_cocoa.dart b/flutter/lib/src/native/cocoa/sentry_native_cocoa.dart index 7ee411020d..5666246472 100644 --- a/flutter/lib/src/native/cocoa/sentry_native_cocoa.dart +++ b/flutter/lib/src/native/cocoa/sentry_native_cocoa.dart @@ -47,7 +47,7 @@ class SentryNativeCocoa extends SentryNativeChannel { Uint8List? imageBytes; await _replayRecorder?.capture((image) async { - var imageData = + final imageData = await image.toByteData(format: ImageByteFormat.png); if (imageData != null) { options.logger(