Coder Social home page Coder Social logo

Comments (16)

seateam avatar seateam commented on August 11, 2024 1

原代码

switch (this.name) {
  case IconNames.amap:
    svgXml = '''

伪代码来了

if (this.name == IconNames.amap || this.name == "amap") {
  svgXml = '''
}

from flutter-iconfont-cli.

fwh1990 avatar fwh1990 commented on August 11, 2024

来个PR吗?

from flutter-iconfont-cli.

fwh1990 avatar fwh1990 commented on August 11, 2024

或者贴一小段您理想中的代码

from flutter-iconfont-cli.

seateam avatar seateam commented on August 11, 2024

牛逼,秒回,我这就来pr

from flutter-iconfont-cli.

fwh1990 avatar fwh1990 commented on August 11, 2024

刚好在发布版本

from flutter-iconfont-cli.

seateam avatar seateam commented on August 11, 2024

理想代码:
在现有的基础上 IconFont(IconNames.facebook) 增加支持 IconFont("facebook")

from flutter-iconfont-cli.

seateam avatar seateam commented on August 11, 2024

这样就可以将服务器请求的字符串,通过变量来使用图标。

from flutter-iconfont-cli.

fwh1990 avatar fwh1990 commented on August 11, 2024

在现有的基础上 IconFont(IconNames.facebook) 增加支持 IconFont("facebook")

我觉得这个很有必要。

from flutter-iconfont-cli.

fwh1990 avatar fwh1990 commented on August 11, 2024

明早更新,连同上一个issue

from flutter-iconfont-cli.

fwh1990 avatar fwh1990 commented on August 11, 2024

收到

from flutter-iconfont-cli.

seateam avatar seateam commented on August 11, 2024

感谢 那我明早更新~

本来是前端
最近才学 flutter
不介意的话,还想请教问题

wechat: iwangyang

from flutter-iconfont-cli.

fwh1990 avatar fwh1990 commented on August 11, 2024

flutter我也只玩过demo,一般都是用RN,所以你去看我的主页,开源的基本都能在RN上用

from flutter-iconfont-cli.

fwh1990 avatar fwh1990 commented on August 11, 2024

https://github.com/iconfont-cli/flutter-iconfont-cli/blob/master/snapshots/icon_font.dart

看下有没有问题,模拟器上测试过了

from flutter-iconfont-cli.

seateam avatar seateam commented on August 11, 2024

等你 npm 发版吧, 我测试有bug

  IconFont(dynamic iconName, { this.size = 100, this.color, this.colors }) {
    switch (iconName) {
#convertCases#
    }

from flutter-iconfont-cli.

fwh1990 avatar fwh1990 commented on August 11, 2024

已发布1.0

from flutter-iconfont-cli.

seateam avatar seateam commented on August 11, 2024

完美解决! 感谢感谢感谢

from flutter-iconfont-cli.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.