美文网首页
flutter06:使用iconfont字体

flutter06:使用iconfont字体

作者: 蜗牛的学习方法 | 来源:发表于2019-06-17 15:07 被阅读0次

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


image.png

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


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

相关文章

网友评论

      本文标题:flutter06:使用iconfont字体

      本文链接:https://www.haomeiwen.com/subject/jepafctx.html