flutter-iconfont-cli
用纯JS把iconfont.cn的图标转换成Flutter Widget,不依赖字体,支持多色彩
安装
pubspec.yml中加入flutter_svg
# 接着安装全局插件(基于nodeJs)
npm install flutter-iconfont-cli -g
# 初始化生成配置文件
npx iconfont-init
# ./iconfont.json
# {
# "symbol_url": "请参考README.md,复制官网提供的JS链接",
# "save_dir": "./lib/iconfont", 存放位置
# "trim_icon_prefix": "icon",
# "default_icon_size": 18, 默认大小
# "null_safety": true 空安全
# }
# 生成或更新图标
npx iconfont-flutter
使用方式
// 单色
IconFont(IconNames.alipay, size: 100, color: 'red');
// 多色
IconFont(IconNames.alipay, size: 100, colors: ['green', 'orange']);
https://github.com/iconfont-cli/flutter-iconfont-cli
vscode-flutter-i18n-json
Flutter-i18n国际化vscode插件
flutter_template
Flutter空壳模板工程,已搭建基础框架,实现国际化、主题换肤、登录注册、自动路由注册等功能
https://github.com/xuexiangjys/flutter_template
fl_chart
开源的Flutter图表动画组件库