E/flutter ( 4610): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Bad state: Invalid "font-weight": none
E/flutter ( 4610): #0 SvgParser.parseFontWeight (package:vector_graphics_compiler/src/svg/parser.dart:1327:5)
E/flutter ( 4610): #1 SvgParser._createSvgAttributes (package:vector_graphics_compiler/src/svg/parser.dart:1691:21)
当我在 flutter_svg 小部件中加载 svg 图像 url 时显示此错误
不要在代码中将“font-weight”设置为“none”,而是使用正确的枚举值,如果你想去除字体粗细效果,可以不设置“font-weight”属性并让它使用默认值。