博客
关于我
Flutter 加载本地图片
阅读量:348 次
发布时间:2019-03-04

本文共 431 字,大约阅读时间需要 1 分钟。

官网:

根目录新建

 

调用

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

 

转载地址:http://zkpr.baihongyu.com/

你可能感兴趣的文章
Linux-文件目录类常用指令3
查看>>
搜索查找类指令
查看>>
数字三角形的无返回值的深度优先搜索解法
查看>>
完全背包问题的简化思路
查看>>
Jquery添加元素
查看>>
Jquery使用需要下载的文件
查看>>
Spring中如何传递参数的问题
查看>>
Ajax中get方式url传递中文参数乱码的解决
查看>>
BST中某一层的所有节点(宽度优先搜索)
查看>>
广度优先搜索
查看>>
对于递归的理解
查看>>
二分查找(递归)
查看>>
猜字母
查看>>
Eclipse导出项目出现resource is out of sync with the file...错误
查看>>
奇怪的分式(枚举 + 判断)
查看>>
Linux网络环境配置(设置ip地址)
查看>>
Idea使用Spring Initializr来快速创建springboot项目
查看>>
C++邻接表存储图的深度优先搜索
查看>>
C++实现Dijkstra算法(单源路径最短算法)
查看>>
Dijkstra算法输出最短路径
查看>>