0
点赞
收藏
分享

微信扫一扫

Flutter 加载本地图片

腊梅5朵 2023-03-10 阅读 76

根目录新建

 

调用

leading: CircleAvatar(
child: Image.asset("images/ic_launcher.png"),
)

pubspec.yaml 

要配置下

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:
- images/ic_launcher.png

 

举报

相关推荐

0 条评论