矢量图标
矢量圖標(biāo)使用步驟
1訪問阿里巴巴矢量圖標(biāo)庫
阿里巴巴矢量圖標(biāo)庫
2搜索想要的圖標(biāo)
3添加至購物車
4點(diǎn)擊購物車添加至項(xiàng)目
5點(diǎn)擊下載至本地
6找到ttf文件,加入flutter項(xiàng)目
7在pubspec.yaml中添加
fonts:- family: Customizedfonts:- asset: assets/fonts/customized.ttf- family: Alarmfonts:- asset: assets/fonts/alarm.ttf8 項(xiàng)目中引用
Icon(IconData(0xe627, fontFamily: 'Customized'),size: 15,color: Colors.black26,),‘0xe627’ 為購物車中的圖標(biāo)代碼
總結(jié)
- 上一篇: 四川大学计算机科学研究生,四川大学计算机
- 下一篇: 威胁猎人产品总监彭巍:业务安全发展趋势及