zoukankan      html  css  js  c++  java
  • flutter使用svg库时提示The <style> element is not implemented in this library的解决方法

    flutter使用svg库时提示The element is not implemented in this library的解决方法

    • flutter使用svg需要第三方库支持,配置pubspec.yaml如下

      flutter_svg: ^0.19.1
      
    • 使用代码

      SvgPicture.asset(‘assetPath’);
      
    • 可能会遇到 element is not implemented提示错误或者显示为black svg黑的

      解决方法是使用一个叫做svgcleaner清除一下多余的信息
      
    • svgcleaner下载地址

      https://github.com/RazrFalcon/svgcleaner-gui/releases
      
      下载后直接运行,import导入svg图片,然后点击run处理即可
      
  • 相关阅读:
    杭电 1013 Digital Roots
    杭电 1040 As Easy As A+B 【排序】
    杭电 2092 整数解
    bzoj3223
    bzoj3224
    LA3905
    bzoj3601
    bzoj1002
    bzoj3105
    bzoj3332
  • 原文地址:https://www.cnblogs.com/yongfengnice/p/13949010.html
Copyright © 2011-2022 走看看