Update panorama.dart

fix onImageLoad call
This commit is contained in:
Zebiao Hu 2021-11-28 20:08:01 +08:00 committed by GitHub
parent 87e43ef941
commit 538fd94889
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -303,7 +303,7 @@ class _PanoramaState extends State<Panorama> 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) {