iconfont_dart 0.1.5 copy "iconfont_dart: ^0.1.5" to clipboard
iconfont_dart: ^0.1.5 copied to clipboard

outdated

iconfont to dart can be implemented by calling iconfont classname.

iconfont_dart #

iconfont to dart.Icon can be implemented by calling iconfont classname.

iconfont转dart。通过调用iconfont的classname即可返回Icon。

生成dart文件预览 #

使用 #

import 'package:iconfont_dart/iconfont_dart.dart';

main() {
  IconfontDart('../lib/assets/fonts/demo_index.html', './a.dart', toHumpStr: '-');
}

注意:通过 dart xxx.dart 执行生成dart文件

参数介绍 #

IconfontDart(String dir, String buildDir, {bool isToHump})

  • @dir: iconfont中 demo_index.html 目录
  • @buildDir: 生成dart文件路径
  • @toHumpStr: 将classname替换为驼峰命名 eg: icon-name 转换 iconName. eg: icon-name => iconName toHumpStr传入 '-'

仓库地址 #

0
likes
0
pub points
21%
popularity

Publisher

unverified uploader

iconfont to dart can be implemented by calling iconfont classname.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, html

More

Packages that depend on iconfont_dart