iconfont_convert

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

iconfont convert

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_family: other_test_icons #可以用来覆盖默认的 Font Family
#package: other_package #在其他 package 中定义图标时记得添加包名
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
多个图标项目的字体名会冲突,可以使用 font_family 来设置不同的字体名,推荐在 iconfont.cn 的项目设置中修改 Font Family

感谢 #

iconfont_flutter
voca.js

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.