1、在阿里巴巴字体图标库下载一个iconfont.ttf字体
2、在项目根目录下建一个fonts文件夹,如以下图:

3、在pubspec.yaml文件下面引入iconfont.ttf文件

4、使用
Icon( IconData(0xe68f, fontFamily: 'iconfont'),color: Colors.blue,size: 89.0)

1、在阿里巴巴字体图标库下载一个iconfont.ttf字体
2、在项目根目录下建一个fonts文件夹,如以下图:
3、在pubspec.yaml文件下面引入iconfont.ttf文件
Icon( IconData(0xe68f, fontFamily: 'iconfont'),color: Colors.blue,size: 89.0)
本文标题:flutter06:使用iconfont字体
本文链接:https://www.haomeiwen.com/subject/jepafctx.html
网友评论