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

NetworkImage provider issue #473

Closed
dchrzanowski opened this issue Oct 5, 2021 · 2 comments
Closed

NetworkImage provider issue #473

dchrzanowski opened this issue Oct 5, 2021 · 2 comments

Comments

@dchrzanowski
Copy link

dchrzanowski commented Oct 5, 2021

Flutter version 2.5.1, dart version 2.14.12, photo_view version 0.12.0

Library used to work fantastically up until recently.

I just received a new requirements in work. Had to update flutter and any other deps, since the build failed.

What I get now with with NetworkImage provider is a Red box with a cross inside and that's it, sometimes a broken image icon. The AssetImage provider works fine.
I thought that perhaps I'm having network issues, but the Image.network() loads up the image without any issues.

Maybe an issue with the server to app communication, but a basic image from https://via.placeholder.com/300.png/09f/fff fails to load with photo_view.

Kind Regards

EDIT:

My current workaround is to use PhotoView.customChild:

PhotoView.customChild(
  child: Image.network(
    widget.file.url!,
    fit: BoxFit.cover,
    height: MediaQuery.of(context).size.height,
    width: MediaQuery.of(context).size.width,
    alignment: Alignment.center,
  ),
),
@renancaraujo
Copy link
Member

Thanks for reporting. Dupe of #464 in which the fix is now published on 0.13.0

@dchrzanowski
Copy link
Author

@renancaraujo Thank you for fixing! Fantastic news!

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