flutter_cached_network_image icon indicating copy to clipboard operation
flutter_cached_network_image copied to clipboard

MacOS build not showing any images

Open PavieOlivier opened this issue 3 years ago • 2 comments

I have been trying for an hour to display images on Mac, It does wok properly on iOS and Android. When i try printing the error the only thing i get is

ImageCodecException: Failed to load network image. Image URL: https://static.toiimg.com/photo/77630680.cms?imgsize=780095 Trying to load an image from another domain? Find answers at: https://flutter.dev/docs/development/platform-integration/web-images

It turns out to be a Cors Issue? Same thing happens on web but on web i build using flutter run -d chrome --web-renderer html so i am able to bypass.

any reason why this is happening ?

PavieOlivier avatar May 07 '22 13:05 PavieOlivier

also, Using Image.network() works just fine without any issue

PavieOlivier avatar May 07 '22 14:05 PavieOlivier

any update??

PavieOlivier avatar May 09 '22 22:05 PavieOlivier

@PavieOlivier I found this problem on february 2023 and it seems not resolved, right ? 😢

I'm not able to fetch any images on web project, only if I render it as HTML web-render. But, I can't do it because lottie doesn't work without canvasKit web-render.

@renefloor Looks like this bug is not watching. Web and macOS projects are forgotten

marcellocamara avatar Feb 06 '23 14:02 marcellocamara

Run the app using a different renderer ...

flutter run -d chrome --webrenderer html ( this will run the app )

Flutter build web --web-renderer html --release (for production)

It will work for this package and you will be able to use lotti files and all....

If i remember correctly, hit reloading will not work properly on for debugging the app .. it was a long time so i don't remember correctly,

Hope it helps

PavieOlivier avatar Feb 07 '23 08:02 PavieOlivier

@PavieOlivier

flutter run -d chrome --webrenderer html ( this will run the app )

Flutter build web --web-renderer html --release (for production)

It will work for this package and you will be able to use lottie files and all....

https://pub.dev/packages/lottie#flutter-web

I can't use lottie without the instruction of canvasKit web render. It don't work 😢

Run the app with flutter run -d chrome --web-renderer canvaskit

I will try to not use cached_network_image (Image.network or something similar instead)

marcellocamara avatar Feb 07 '23 12:02 marcellocamara