fix null pointer issue
Some checks failed
Flutter analyze & test / flutter_analyze_and_test (push) Has been cancelled

This commit is contained in:
otsmr 2025-11-30 13:48:28 +01:00
parent ef4b799861
commit febf236147

View file

@ -403,7 +403,9 @@ class _ShareImageEditorView extends State<ShareImageEditorView> {
for (final x in layers) { for (final x in layers) {
x.showCustomButtons = true; x.showCustomButtons = true;
} }
if (mounted) {
setState(() {}); setState(() {});
}
return image; return image;
} }