Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
janammaharjan opened this issue Jan 17, 2022 · 2 comments

Comments

@janammaharjan
Copy link

janammaharjan commented Jan 17, 2022

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
Copy link

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

@vanlooverenkoen
Copy link

#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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants