LunaGao / flag_flutter

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

Exception when drawing Peru flag #69

Closed Flucadetena closed 1 year ago

Flucadetena commented 2 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(#c). Have ids: (url(#flag-icons-pe), url(#g), url(#d), url(#a), url(#b), url(#e), url(#f))

When the exception was thrown, this was the stack

0 DrawableDefinitionServer.getDrawable

package:flutter_svg/src/vector_drawable.dart:579

1 _Elements.use

package:flutter_svg/…/svg/parser_state.dart:212

2 SvgParserState.parse

package:flutter_svg/…/svg/parser_state.dart:885

#3 SvgParser.parse package:flutter_svg/parser.dart:27 #4 Svg.fromSvgString package:flutter_svg/svg.dart:139 #5 Svg.svgPictureStringDecoder package:flutter_svg/svg.dart:90 Picture provider: ExactAssetPicture(name: "packages[/flag/res/4x3/pe.svg]()", bundle: null, colorFilter: null) Picture key: AssetBundlePictureKey(bundle: PlatformAssetBundle#d1b8c(), name: "packages[/flag/res/4x3/pe.svg]()", colorFilter: null, theme: SvgTheme(currentColor: null, fontSize: 14.0, xHeight: 7.0))
LunaGao commented 1 year ago

fixed. image