I have developed a Flutter app with Firebase backend, where one can create an account and upload images.
In the Android app I don’t have errors displaying previously uploaded images.
But in the web version of the app the uploaded images are not visible and instead of each image this message is displayed:
"object ProgressEvent"
Here’s the error:
I tried changing the rules in Firebase but didn’t help.
Changing the Firebase rules, opening Chrome with incognito mode, trying other browsers.
2
Answers
Solution:
at index.html in your project
change renderer from CanvasKit to html
I was having same error when I was trying to display images from firebase storage. Apparently, firebase storage images has headers.
This is the error before my fix:
I did little research, and what I found is if you are using Canvas Kit as renderer instead of HTML that will cause the problem
FYI-
HTML: this renderer uses a combination of HTML, CSS, Canvas 2D, and SVG to render UI. It uses the element to render images.
CanvasKit: this renderer uses WebGL to render UI, and therefore requires access to the pixels of the image.
Hope this will help!
Solo deben agregar en el index.html de la carpeta Web lo siguiente:
Actualizado (Ya que el otro esta deprecado):
En el mismo lugar reemplazar en esa parte del codigo: