From a0074c07a6ea44200cfe6d5beb075cd1ef9c4258 Mon Sep 17 00:00:00 2001 From: otsmr Date: Mon, 10 Feb 2025 20:35:26 +0100 Subject: [PATCH] fix #11 --- lib/src/views/camera_to_share/share_image_editor_view.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/views/camera_to_share/share_image_editor_view.dart b/lib/src/views/camera_to_share/share_image_editor_view.dart index 5491480..aa3e5a3 100644 --- a/lib/src/views/camera_to_share/share_image_editor_view.dart +++ b/lib/src/views/camera_to_share/share_image_editor_view.dart @@ -189,10 +189,12 @@ class _ShareImageEditorView extends State { for (var x in layers) { x.showCustomButtons = false; } + setState(() {}); image = await screenshotController.capture(pixelRatio: pixelRatio); for (var x in layers) { x.showCustomButtons = true; } + setState(() {}); } else if (layers.length == 1) { if (layers.first is BackgroundLayerData) { image = (layers.first as BackgroundLayerData).image.bytes;