当前位置:网站首页>flutter Unable to load asset: assets/images/888. png
flutter Unable to load asset: assets/images/888. png
2022-07-01 23:11:00 【Liu Xiaobo】
Report errors
Debug service listening on ws://127.0.0.1:65376/KSCFS_eCpng=/ws
Syncing files to device iPhone 13…
======== Exception caught by image resource service ================================================
The following assertion was thrown resolving an image codec:
Unable to load asset: assets/images/888.png
When the exception was thrown, this was the stack:
#0 PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart:237:7)
#1 AssetBundleImageProvider._loadAsync (package:flutter/src/painting/image_provider.dart:658:14)
Image provider: AssetImage(bundle: null, name: “assets/images/888.png”)
Image key: AssetBundleImageKey(bundle: PlatformAssetBundle#05eaa(), name: “assets/images/888.png”, scale: 1.0)

The wrong way to write

flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/images/
Correct writing
# The following section is specific to Flutter packages.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/images/

namely assets and uses-material-design: true It's aligned
边栏推荐
- [kotlin third party] coil koltin collaboration picture loading library coil glide like picture loading third party
- 【微服务|Sentinel】SentinelResourceAspect详解
- [image segmentation] 2021 segformer neurips
- 日本购物网站的网络乞丐功能
- Wechat personal small store one click opening assistant applet development
- YOGA27多维一体电脑,兼具出色外观与高端配置
- 数字峰会人气火爆,城链科技引发新一轮商业变革
- 软考信息系统项目管理师_整理的十大管理过程的简写帮助记忆背诵---软考高级之信息系统项目管理师054
- Summary of "performance testing" of software testing, novice will know the knowledge points on the road
- [JUC learning road day 9] barrier derivatives
猜你喜欢

Reprint CSDN article operation

rviz打开后如何显示实时2D地图

MySQL -- index of MyISAM storage engine

思科--WAN 的概念考试外部工具

Tcpdump command usage details

Istio, ebpf and rsocket Broker: in depth study of service grid
![[机缘参悟-35]:鬼谷子-飞箝篇-远程连接、远程控制与远程测试之术](/img/08/9ecfd53a04e147022dde3449aec132.png)
[机缘参悟-35]:鬼谷子-飞箝篇-远程连接、远程控制与远程测试之术
![Compare the version number [double pointer to intercept the string you want]](/img/19/4f858ffdc1281d6b8b18a996467f10.png)
Compare the version number [double pointer to intercept the string you want]

Wechat personal small store one click opening assistant applet development

工作中非常重要的测试策略,你大概没注意过吧
随机推荐
[JUC learning road day 9] barrier derivatives
Copy ‘XXXX‘ to effectively final temp variable
微服务服务稳定性治理
Explain JMM in detail
What are the benefits of third party acceptance testing? Recommended by professional third-party software testing institutions
【嵌入式系统课设】单个按键控制LED灯
Rank ranking with MySQL 5.7
Openresty load balancing
【Kotlin 第三方 】coil koltin协程图片加载库Coil类似Glide的图片加载第三方
Digital currency: far-reaching innovation
Force buckle 710 Random numbers in the blacklist
Istio, ebpf and rsocket Broker: in depth study of service grid
[JUC learning road day 8] condition
Wechat personal small store one click opening assistant applet development
Flink SQL command line connection yarn
MySQL -- index of MyISAM storage engine
关于游戏性能优化的一些感想
You probably haven't noticed the very important testing strategy in your work
通过Go语言创建CA与签发证书
Cisco test -- the concept and configuration test of routing