diff --git a/lib/widgets/content/image.dart b/lib/widgets/content/image.dart index d7698405..d911b2a1 100644 --- a/lib/widgets/content/image.dart +++ b/lib/widgets/content/image.dart @@ -75,7 +75,9 @@ class UniversalImage extends HookWidget { ); }, imageBuilder: (context, imageProvider) { - Future(() => loaded.value = true); + Future(() { + if (context.mounted) return loaded.value = true; + }); return AnimatedOpacity( opacity: loaded.value ? 1.0 : 0.0, duration: const Duration(milliseconds: 300),