diff --git a/lib/panorama.dart b/lib/panorama.dart index afb344c..a82d87d 100644 --- a/lib/panorama.dart +++ b/lib/panorama.dart @@ -303,7 +303,7 @@ class _PanoramaState extends State with SingleTickerProviderStateMixin surface?.mesh.textureRect = Rect.fromLTWH(0, 0, imageInfo.image.width.toDouble(), imageInfo.image.height.toDouble()); scene!.texture = imageInfo.image; scene!.update(); - widget.onImageLoad!(); + widget.onImageLoad?.call(); } void _loadTexture(ImageProvider? provider) {