This commit is contained in:
otsmr 2025-02-10 20:35:26 +01:00
parent 34ff5c05ec
commit a0074c07a6

View file

@ -189,10 +189,12 @@ class _ShareImageEditorView extends State<ShareImageEditorView> {
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;