Last updated:
0 purchases
iconfont convert flutter
iconfont_convert #
帮助你从 www.iconfont.cn 生成 IconData
支持多个 iconfont 项目
可自动在 pubspec.yaml 中注册字体
安装 #
在项目中安装(推荐) #
在 pubspec.yaml 中添加
dev_dependencies:
iconfont: ^1.0.0
copied to clipboard
运行方式
flutter packages pub run iconfont_convert
copied to clipboard
全局安装 #
flutter pub global activate iconfont_convert
copied to clipboard
运行方式
iconfont-convert
copied to clipboard
参数 #
-c --config config file path
(defaults to "pubspec.yaml")
-h, --help help
copied to clipboard
使用 #
在 pubspec.yaml 中添加配置
# pubspec.yaml
iconfont:
- icons:
- url: //at.alicdn.com/t/c/font_3892650_94qckhszrmg.css
icon_name: test_icons
icon_class: TestIcons
font_assets_path: assets/iconfont/
icon_class_path: lib/icons/
copied to clipboard
运行 iconfont-convert
或者使用独立独立配置文件 iconfont.yaml
# iconfont.yaml
- icons:
- url: //at.alicdn.com/t/c/font_3892650_94qckhszrmg.css
icon_name: test_icons
icon_class: TestIcons
font_assets_path: assets/iconfont/
icon_class_path: lib/icons/
copied to clipboard
运行 iconfont-convert --config iconfont.yaml
常见问题 #
iconfont command not found
感谢 #
iconfont_flutter
voca.js
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.