Comments (16)
原代码
switch (this.name) {
case IconNames.amap:
svgXml = '''
伪代码来了
if (this.name == IconNames.amap || this.name == "amap") {
svgXml = '''
}
from flutter-iconfont-cli.
来个PR吗?
from flutter-iconfont-cli.
或者贴一小段您理想中的代码
from flutter-iconfont-cli.
牛逼,秒回,我这就来pr
from flutter-iconfont-cli.
刚好在发布版本
from flutter-iconfont-cli.
理想代码:
在现有的基础上 IconFont(IconNames.facebook) 增加支持 IconFont("facebook")
from flutter-iconfont-cli.
这样就可以将服务器请求的字符串,通过变量来使用图标。
from flutter-iconfont-cli.
在现有的基础上 IconFont(IconNames.facebook) 增加支持 IconFont("facebook")
我觉得这个很有必要。
from flutter-iconfont-cli.
明早更新,连同上一个issue
from flutter-iconfont-cli.
收到
from flutter-iconfont-cli.
感谢 那我明早更新~
本来是前端
最近才学 flutter
不介意的话,还想请教问题
wechat: iwangyang
from flutter-iconfont-cli.
flutter我也只玩过demo,一般都是用RN,所以你去看我的主页,开源的基本都能在RN上用
from flutter-iconfont-cli.
https://github.com/iconfont-cli/flutter-iconfont-cli/blob/master/snapshots/icon_font.dart
看下有没有问题,模拟器上测试过了
from flutter-iconfont-cli.
等你 npm 发版吧, 我测试有bug
IconFont(dynamic iconName, { this.size = 100, this.color, this.colors }) {
switch (iconName) {
#convertCases#
}
from flutter-iconfont-cli.
已发布1.0
from flutter-iconfont-cli.
完美解决! 感谢感谢感谢
from flutter-iconfont-cli.
Related Issues (12)
- 能否让 参数color支持 Color类型 ? HOT 1
- 添加icon序列化 HOT 2
- 希望支持修改透明度 fill-opacity HOT 3
- 可否支持自定义类名? HOT 1
- IconPark图标 颜色问题
- flutter web环境下图片偶尔失效与不能完整显示
- 生成文件的命名格式不对 HOT 4
- npx iconfont-flutter 404 HOT 2
- 1 不支持数字开头,2 不知为何数字会加入 _ 分割 HOT 9
- 解析完成的图标名把所有带 ’-‘ 的图标名替换成了'_'
- 能否支持dart 2.12.0的 null safety 特性? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-iconfont-cli.