Open chjsun opened 4 years ago
Looks like the text
handler isn't adding text in definitions.
remove redundant code,same question
SvgPicture.asset("assets/image/home/test.svg", height: 80,),
<?xml version="1.0" encoding="UTF-8"?>
<svg width="83px" height="18px" viewBox="0 0 83 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<text id="text-3" font-size="9" fill="#FF0000">
<tspan x="18" y="13">患者家属/朋友</tspan>
</text>
</defs>
<g id="test" fill-opacity="1">
<use xlink:href="#text-3"></use>
</g>
</svg>
flutter: The following StateError was thrown resolving a single-frame picture stream:
flutter: Bad state: Expected to find Drawable with id url(#text-3).
flutter: Have ids: (url(#test))
......
and i hide text, but
@dnfield ,I don't know SVG very well,please help me if you can
my svg is