MacOS build not showing any images
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 ?
also, Using Image.network() works just fine without any issue
any update??
@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
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
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)