Repository: flutter
Issue: [flutter_svg] Bad state: Expected to find Drawable with id url(#text-3).
Labels: package,p: flutter_svg

_Imported from https://github.com/dnfield/flutter_svg/issues/325_

Original report by @chjsun on Apr 6, 2020

my svg is 

```
<?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">
    <!-- Generator: Sketch 55 (78076) - https://sketchapp.com -->
    <title>Family members of patients</title>
    <desc>Created with Sketch.</desc>
    <defs>
        <linearGradient x1="100%" y1="47.648425%" x2="0%" y2="52.351575%" id="linearGradient-1">
            <stop stop-color="#3DC862" offset="0%"></stop>
            <stop stop-color="#8BD939" offset="100%"></stop>
        </linearGradient>
        <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-2">
            <stop stop-color="#FFFFFF" offset="0%"></stop>
            <stop stop-color="#DEFFE1" offset="100%"></stop>
        </linearGradient>
        <text id="text-3" font-family="PingFangSC-Regular, PingFang SC" font-size="9" font-weight="normal" fill="#FFFFFF">
            <tspan x="18" y="13">患者家属/朋友</tspan>
        </text>
        <filter x="-0.8%" y="-3.8%" width="101.7%" height="115.4%" filterUnits="objectBoundingBox" id="filter-4">
            <feOffset dx="0" dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
            <feColorMatrix values="0 0 0 0 0   0 0 0 0 0   0 0 0 0 0  0 0 0 0.0933129371 0" type="matrix" in="shadowOffsetOuter1"></feColorMatrix>
        </filter>
    </defs>
    <g id="我的" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <g id="切图" transform="translate(-345.000000, -35.000000)">
            <g id="Family-members-of-patients" transform="translate(345.000000, 35.000000)">
                <rect id="矩形" fill="url(#linearGradient-1)" x="0" y="0" width="83" height="18" rx="9"></rect>
                <circle id="椭圆形" fill="url(#linearGradient-2)" cx="9" cy="9" r="7"></circle>
                <text id="家" font-family="PingFangSC-Regular, PingFang SC" font-size="9" font-weight="normal" fill="#70C942">
                    <tspan x="5" y="13">家</tspan>
                </text>
                <g id="患者家属/朋友" fill="#FFFFFF" fill-opacity="1">
                    <use filter="url(#filter-4)" xlink:href="#text-3"></use>
                    <use xlink:href="#text-3"></use>
                </g>
            </g>
        </g>
    </g>
</svg>
```


---------------------------
```
flutter: unhandled element filter; Picture key: AssetBundlePictureKey(bundle: PlatformAssetBundle#d13e2(), name: "assets/image/home/test.svg", colorFilter: null)
flutter: ══╡ EXCEPTION CAUGHT BY 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(#我的), url(#切图), url(#Family-members-of-patients), ..., url(#椭圆形), url(#患者家属/朋友))
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #0      DrawableDefinitionServer.getDrawable (package:flutter_svg/src/vector_drawable.dart:577:7)
flutter: #1      _Elements.use (package:flutter_svg/src/svg/parser_state.dart:154:34)
flutter: #2      SvgParserState.parse (package:flutter_svg/src/svg/parser_state.dart:746:26)
flutter: <asynchronous suspension>
flutter: #3      SvgParser.parse (package:flutter_svg/parser.dart:14:60)
flutter: #4      Svg.fromSvgString (package:flutter_svg/svg.dart:110:25)
flutter: #5      Svg.svgPictureStringDecoder (package:flutter_svg/svg.dart:72:36)
flutter: #6      SvgPicture.svgStringDecoder.<anonymous closure> (package:flutter_svg/svg.dart:531:15)
flutter: #7      AssetBundlePictureProvider._loadAsync (package:flutter_svg/src/picture_provider.dart:456:12)
flutter: <asynchronous suspension>
flutter: #8      AssetBundlePictureProvider.load (package:flutter_svg/src/picture_provider.dart:434:43)
flutter: #9      PictureProvider.resolve.<anonymous closure>.<anonymous closure> (package:flutter_svg/src/picture_provider.dart:326:17)
flutter: #10     PictureCache.putIfAbsent (package:flutter_svg/src/picture_cache.dart:67:22)
flutter: #11     PictureProvider.resolve.<anonymous closure> (package:flutter_svg/src/picture_provider.dart:324:16)
flutter: #12     SynchronousFuture.then (package:flutter/src/foundation/synchronous_future.dart:38:29)
flutter: #13     PictureProvider.resolve (package:flutter_svg/src/picture_provider.dart:321:24)
flutter: #14     _SvgPictureState._resolveImage (package:flutter_svg/svg.dart:641:10)
flutter: #15     _SvgPictureState.didChangeDependencies (package:flutter_svg/svg.dart:615:5)
flutter: #16     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4376:12)
flutter: #17     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #18     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #19     MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5551:32)
flutter: #20     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #21     Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #22     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14)
flutter: #23     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #24     Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #25     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14)
flutter: #26     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #27     Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #28     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14)
flutter: #29     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #30     Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #31     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14)
flutter: #32     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #33     Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #34     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #35     Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #36     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #37     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #38     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #39     Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #40     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14)
flutter: #41     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #42     Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #43     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #44     Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #45     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #46     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4381:11)
flutter: #47     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #48     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #49     Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #50     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14)
flutter: #51     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #52     Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #53     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #54     Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #55     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #56     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #57     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #58     Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #59     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #60     Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #61     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #62     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #63     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #64     Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #65     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14)
flutter: #66     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #67     Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #68     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #69     Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #70     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #71     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4381:11)
flutter: #72     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #73     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #74     Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #75     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #76     Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #77     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #78     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #79     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #80     Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #81     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #82     Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #83     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #84     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #85     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #86     Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #87     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #88     Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #89     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #90     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4381:11)
flutter: #91     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #92     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #93     Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #94     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #95     Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #96     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #97     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #98     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #99     Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #100    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #101    Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #102    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #103    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #104    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #105    Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #106    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #107    Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #108    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #109    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #110    ParentDataElement.mount (package:flutter/src/widgets/framework.dart:4617:11)
flutter: #111    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #112    MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5551:32)
flutter: #113    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #114    Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #115    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #116    Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #117    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #118    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4381:11)
flutter: #119    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #120    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #121    Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #122    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #123    Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #124    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #125    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #126    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #127    Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #128    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #129    Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #130    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #131    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4381:11)
flutter: #132    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #133    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #134    Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #135    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14)
flutter: #136    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #137    Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #138    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #139    Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #140    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #141    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #142    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #143    Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #144    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14)
flutter: #145    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #146    Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #147    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #148    Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #149    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #150    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4381:11)
flutter: #151    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #152    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #153    Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #154    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #155    Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #156    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #157    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4381:11)
flutter: #158    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #159    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #160    Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #161    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #162    Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #163    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #164    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #165    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #166    Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #167    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #168    Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #169    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #170    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #171    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #172    Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #173    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #174    Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #175    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #176    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4381:11)
flutter: #177    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #178    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #179    Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #180    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #181    Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #182    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #183    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4381:11)
flutter: #184    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #185    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #186    Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #187    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14)
flutter: #188    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #189    Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #190    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14)
flutter: #191    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #192    Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #193    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #194    Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #195    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #196    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #197    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #198    Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #199    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #200    Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #201    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #202    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #203    ParentDataElement.mount (package:flutter/src/widgets/framework.dart:4617:11)
flutter: #204    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #205    Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #206    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #207    Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #208    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #209    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4381:11)
flutter: #210    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #211    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #212    Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #213    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
flutter: #214    Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
flutter: #215    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
flutter: #216    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #217    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #218    Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #219    SliverMultiBoxAdaptorElement.updateChild (package:flutter/src/widgets/sliver.dart:1288:36)
flutter: #220    SliverMultiBoxAdaptorElement.createChild.<anonymous closure> (package:flutter/src/widgets/sliver.dart:1273:20)
flutter: #221    BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2412:19)
flutter: #222    SliverMultiBoxAdaptorElement.createChild (package:flutter/src/widgets/sliver.dart:1266:11)
flutter: #223    RenderSliverMultiBoxAdaptor._createOrObtainChild.<anonymous closure> (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:354:23)
flutter: #224    RenderObject.invokeLayoutCallback.<anonymous closure> (package:flutter/src/rendering/object.dart:1823:58)
flutter: #225    PipelineOwner._enableMutationsToDirtySubtrees (package:flutter/src/rendering/object.dart:875:15)
flutter: #226    RenderObject.invokeLayoutCallback (package:flutter/src/rendering/object.dart:1823:13)
flutter: #227    RenderSliverMultiBoxAdaptor._createOrObtainChild (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:343:5)
flutter: #228    RenderSliverMultiBoxAdaptor.addInitialChild (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:427:5)
flutter: #229    RenderSliverFixedExtentBoxAdaptor.performLayout (package:flutter/src/rendering/sliver_fixed_extent_list.dart:196:12)
flutter: #230    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #231    RenderSliverEdgeInsetsPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:134:11)
flutter: #232    _RenderSliverFractionalPadding.performLayout (package:flutter/src/widgets/sliver.dart:1165:11)
flutter: #233    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #234    RenderViewportBase.layoutChildSequence (package:flutter/src/rendering/viewport.dart:410:13)
flutter: #235    RenderViewport._attemptLayout (package:flutter/src/rendering/viewport.dart:1367:12)
flutter: #236    RenderViewport.performLayout (package:flutter/src/rendering/viewport.dart:1285:20)
flutter: #237    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #238    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
flutter: #239    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #240    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
flutter: #241    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #242    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
flutter: #243    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #244    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
flutter: #245    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #246    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
flutter: #247    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #248    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
flutter: #249    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #250    MultiChildLayoutDelegate.layoutChild (package:flutter/src/rendering/custom_layout.dart:163:11)
flutter: #251    _ScaffoldLayout.performLayout (package:flutter/src/material/scaffold.dart:477:7)
flutter: #252    MultiChildLayoutDelegate._callPerformLayout (package:flutter/src/rendering/custom_layout.dart:232:7)
flutter: #253    RenderCustomMultiChildLayoutBox.performLayout (package:flutter/src/rendering/custom_layout.dart:391:14)
flutter: #254    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #255    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
flutter: #256    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #257    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
flutter: #258    _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1232:11)
flutter: #259    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #260    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
flutter: #261    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #262    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
flutter: #263    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #264    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
flutter: #265    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #266    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
flutter: #267    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #268    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
flutter: #269    RenderOffstage.performLayout (package:flutter/src/rendering/proxy_box.dart:3168:13)
flutter: #270    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #271    RenderStack.performLayout (package:flutter/src/rendering/stack.dart:505:15)
flutter: #272    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #273    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
flutter: #274    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #275    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
flutter: #276    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #277    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
flutter: #278    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #279    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
flutter: #280    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #281    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
flutter: #282    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #283    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
flutter: #284    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #285    RenderStack.performLayout (package:flutter/src/rendering/stack.dart:505:15)
flutter: #286    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #287    RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
flutter: #288    RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
flutter: #289    RenderView.performLayout (package:flutter/src/rendering/view.dart:167:13)
flutter: #290    RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1584:7)
flutter: #291    PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:844:18)
flutter: #292    RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:344:19)
flutter: #293    WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:774:13)
flutter: #294    RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:283:5)
flutter: #295    SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1102:15)
flutter: #296    SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1041:9)
flutter: #297    SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:850:7)
flutter: #306    _Timer._runTimers (dart:isolate-patch/timer_impl.dart:384:19)
flutter: #307    _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:418:5)
flutter: #308    _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)
flutter: (elided 8 frames from package dart:async and package dart:async-patch)
flutter:
flutter: Picture provider: ExactAssetPicture(name: "assets/image/home/test.svg", bundle: null, colorFilter:
flutter:   null)
flutter: Picture key: AssetBundlePictureKey(bundle: PlatformAssetBundle#d13e2(), name:
flutter:   "assets/image/home/test.svg", colorFilter: null)
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════
```

---
Comment by @dnfield on Apr 6, 2020
Looks like the `text` handler isn't adding text in definitions.  

---
Comment by @chjsun on Apr 6, 2020
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 
![image](https://user-images.githubusercontent.com/13481443/78536396-5cd57100-7820-11ea-967e-53cf53ec43f7.png)


@dnfield ,I don't know SVG very well，please help me if you can