小编Tus*_*rni的帖子

Flutter web 图像加载在移动视图中,但不是全视图?

我正在使用 FadeInImage 小部件从网络加载图像

当页面在开发人员控制台的移动视图中刷新时,图像加载正常,但在完整视图中它给了我一个异常

The following ImageCodecException was thrown resolving an image codec:
Failed to load network image.
Image URL: https://api.gogoz.in/static/img/FF000001FV0000007.jpg
Trying to load an image from another domain? Find answers at:
https://flutter.dev/docs/development/platform-integration/web-images

When the exception was thrown, this was the stack:
...

Image provider: NetworkImage("https://api.gogoz.in/static/img/FF000001FV0000007.jpg", scale: 1)
Image key: NetworkImage("https://api.gogoz.in/static/img/FF000001FV0000007.jpg", scale: 1)
Run Code Online (Sandbox Code Playgroud)

我没有想法解决这个问题

image widget flutter flutter-web

1
推荐指数
1
解决办法
1438
查看次数

标签 统计

flutter ×1

flutter-web ×1

image ×1

widget ×1