I'm trying to show an image in one of my pages. The image is an SVG file uploaded as an asset. I can see it and select it fine in the Image widget during design. If I run the app on iOS and Android, the image shows up normally.
Any suggestions?
I'm trying to show an image in one of my pages. The image is an SVG file uploaded as an asset. I can see it and select it fine in the Image widget during design. If I run the app on iOS and Android, the image shows up normally.
Any suggestions?
The issue happens when I publish the web app. No matter what I try, the Image Widget just shows a gray area. I checked the pubspec.yaml file and the assets folder on VSCode to make sure that, in fact, the image is there and that the assets/images folder is referenced. Also, no console errors on Chrome and I can see the image among the Tranwork traffic.
Thinking that it might be simpler to use the image as a Network asset, I decided to reference it from the URL. Still, same behavior with the Image widget and the gray screen. The Network traffic shows the call to the URL being done normally and I can see the image reference being returned.
Seeing that I almost ran out of options, I decided to try another image and to my surprise, no matter what URL I pass to it, the grayed area in the Image widget it is still showing up.