Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when drawing Peru flag #69

Closed
Flucadetena opened this issue Feb 7, 2022 · 1 comment
Closed

Exception when drawing Peru flag #69

Flucadetena opened this issue Feb 7, 2022 · 1 comment

Comments

@Flucadetena
Copy link

════════ 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
Copy link
Owner

LunaGao commented Jun 13, 2023

fixed.
image

@LunaGao LunaGao closed this as completed Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants