如何在Flutter中渲染SVG? [英] How to Render SVGs in Flutter?

查看:199
本文介绍了如何在Flutter中渲染SVG?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于Flutter svg的分析功能现在很低,因此 https://pub. dev/packages/flutter_svg#-analysis-tab- ,应该使用什么来使SVG呈现出扑朔迷离的效果.

Since the Analytics of Flutter svg is pretty low now, https://pub.dev/packages/flutter_svg#-analysis-tab- , what should be using to render SVGs in flutter.

分析:

为什么这样的分数?

推荐答案

此后,flutter_svg遍地都是,尽管我找到了适合您的解决方案,并且想知道它对您有多大好处. Flutter仍不完全支持此svg,因此需要找到解决方法.

Since, flutter_svg is every where, although I have found a work around for you and want to know how much beneficial it is for you. Flutter still doesn't fully support this svg, so need to find a work around.

请按照以下步骤操作,看看是否可行:

Follow the below steps and see if that is workable:

  1. 访问 Flutter自定义图标生成器
  2. 上传您的SVG资产
  3. 点击下载按钮
  4. 您将获得两个文件:
    • iconname.dart
    • iconname.ttf字体文件
  1. Visit Flutter Custom Icon Generator
  2. Upload your SVG asset
  3. Click on download button
  4. You will get two kinda files:
    • iconname.dart
    • iconname.ttf font file

这篇关于如何在Flutter中渲染SVG?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆