mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-16 04:48:40 +00:00
mounted check
This commit is contained in:
parent
8b998914e3
commit
fba84caf62
1 changed files with 1 additions and 0 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue