From 538fd948892357088afeeb4d90de04b3ccb91668 Mon Sep 17 00:00:00 2001 From: Zebiao Hu Date: Sun, 28 Nov 2021 20:08:01 +0800 Subject: [PATCH] Update panorama.dart fix onImageLoad call --- lib/panorama.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {