LunaGao / flag_flutter

flag icons
https://pub.dev/packages/flag
BSD 2-Clause "Simplified" License
63 stars 60 forks source link

Exception when drawing Sri Lanka flag #21

Closed AKhashi closed 4 years ago

AKhashi commented 4 years ago

════════ Exception caught by SVG ═══════════════════════════════════════════════════════════════════ The following StateError was thrown resolving a single-frame picture stream: Bad state: Expected to find Drawable with id url(#lion). Have ids: (url(#leaf))

When the exception was thrown, this was the stack:

0 DrawableDefinitionServer.getDrawable (package:flutter_svg/src/vector_drawable.dart:577:7)

1 _Elements.use (package:flutter_svg/src/svg/parser_state.dart:184:34)

2 SvgParserState.parse (package:flutter_svg/src/svg/parser_state.dart:776:26)

#3 SvgParser.parse (package:flutter_svg/parser.dart:14:60) ... Picture provider: ExactAssetPicture(name: "packages/flag/res/flag/lk.svg", bundle: null, colorFilter: null) Picture key: AssetBundlePictureKey(bundle: PlatformAssetBundle#cae03(), name: "packages/flag/res/flag/lk.svg", colorFilter: null) ════════════════════════════════════════════════════════════════════════════════════════════════════