Home > database >  I was using image.asset fluter to load images and it was working fine, all the images were being dis
I was using image.asset fluter to load images and it was working fine, all the images were being dis

Time:08-08

I changed nothing and all of sudden it says "Exception caught by image resource service" I don't know if this has happened to anyone yet.

enter image description here

enter image description here

CodePudding user response:

It is mentioned in the error where are you getting the expectation. You need to change the name of the image having space and capital letter. for example:

images/group339.png

CodePudding user response:

Try to restart the app... sometimes, if you use hot-reload or hot-restart the assets are not loaded.

don't use spaces in your file- or directory-names

(not your question, but maybe a useful hint:

For importing assets you can also use a directory instead:

assets:
    -images/

)

CodePudding user response:

There is no image as named Group 3339.png try to provide correct name. Also It would be better using under-score instead of spaces. And rebuild the app while changing assets.

  • Related