mounted check

This commit is contained in:
otsmr 2025-04-08 18:12:24 +02:00
parent 8b998914e3
commit fba84caf62

View file

@ -244,6 +244,7 @@ class _ShareImageEditorView extends State<ShareImageEditorView> {
Future<void> loadImage(Future<Uint8List?> imageFile) async {
Uint8List? imageBytes = await imageFile;
await currentImage.load(imageBytes);
if (!context.mounted) return;
layers.clear();