简体   繁体   English

Flutter:从网络错误导入图像Url

[英]Flutter: Importing image Url from Network error

Hello I am new to flutter and was doing an ecommerce app while importing images URLs from firebase SOMETIMES while calling the "Image.network" gives me this error but only sometimes, and with different picture URLs(every time it is random and sometimes it loads every picture) which is weird I don't know how to solve it .您好,我是 flutter 新手,并且正在做一个电子商务应用程序,同时从 firebase 导入图像 URL 有时在调用“Image.network”时会给我这个错误,但只是有时,并且具有不同的图片 URL(每次它都是随机的,有时它会加载每张图片)这很奇怪,我不知道如何解决。 在此处输入图片说明

Here is the exception it gives.这是它给出的例外。

在此处输入图片说明

Here is mobile emulator picture这是手机模拟器图片

在此处输入图片说明

as U can see it's different every time.正如你可以看到它每次都不同。 在此处输入图片说明

There appears to be a few solutions that people have come up with.人们似乎已经提出了一些解决方案。 On the Flutter GitHub issues page this "hack" appears to have helped some people:在 Flutter GitHub 问题页面上,这个“hack”似乎帮助了一些人:

Potential Solution 潜在解决方案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM