zesage / panorama

Panorama - Flutter Widget
Apache License 2.0
114 stars 71 forks source link

Background color of viewer cannot be changed while loading image from network. #36

Open janammaharjan opened 2 years ago

janammaharjan commented 2 years ago

While loading 360 images from network, I wanted to show circularProgressIndicator when image is not loaded. But Panorama keeps showing blank background:

Code :

Panorama( child: Image.network( panoramaURL, loadingBuilder: (BuildContext context, Widget child, ImageChunkEvent? loadingProgress) { if (loadingProgress == null) return child; return Center( child: CircularProgressIndicator( value: loadingProgress.expectedTotalBytes != null ? loadingProgress.cumulativeBytesLoaded / loadingProgress.expectedTotalBytes! : null,), ); }, ), ),

vanlooverenkoen commented 2 years ago

We are having the same issue. Did you make any progress?

vanlooverenkoen commented 2 years ago

33 this should fix it.

But there is not new pub.dev release since April 2021. @zesage can you create a new build on pub.dev?