Flutter中集成Font Awesome
生活随笔
收集整理的這篇文章主要介紹了
Flutter中集成Font Awesome
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
1、添加引用
在 pubspec.yaml文件中,加入 font awesome的引用
?
1 dependencies: 2 flutter: 3 sdk: flutter 4 5 # The following adds the Cupertino Icons font to your application. 6 # Use with the CupertinoIcons class for iOS style icons. 7 cupertino_icons: ^0.1.0 8 9 #font awesome icon 這行是新加的 10 font_awesome_flutter: 8.2.0
點擊該文件上方的 Packages Get鏈接。
2、使用
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
Icon(FontAwesomeIcons.solidCircle)
?
轉(zhuǎn)載于:https://www.cnblogs.com/ybst/p/10161099.html
總結(jié)
以上是生活随笔為你收集整理的Flutter中集成Font Awesome的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 亏转???
- 下一篇: 梨花雨微电影分别在哪些省份拍摄