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

Error on trying to get brazilian flag #10

Closed
bdlukaa opened this issue Apr 28, 2020 · 3 comments
Closed

Error on trying to get brazilian flag #10

bdlukaa opened this issue Apr 28, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@bdlukaa
Copy link

bdlukaa commented Apr 28, 2020

Error:

``════════ Exception caught by SVG ═══════════════════════════════════════════════
The following StateError was thrown resolving a single-frame picture stream:
Bad state: Expected to find Drawable with id url(#O).
Have ids: (url(#D), url(#E), url(#e), url(#G))

When the exception was thrown, this was the stack
#0 DrawableDefinitionServer.getDrawable
package:flutter_svg/src/vector_drawable.dart:577
#1 _Elements.use
package:flutter_svg/…/svg/parser_state.dart:184
#2 SvgParserState.parse
package:flutter_svg/…/svg/parser_state.dart:776

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

I tried to add other flags (AB and US) and they work perfectly, but the brazilian flag isn't working

@LunaGao
Copy link
Owner

LunaGao commented May 1, 2020

image

Fixed in 2.0.3.

But there is still a bug, you can see that the letters are still a bit abnormal.

@LunaGao
Copy link
Owner

LunaGao commented May 1, 2020

Create a issue on flutter_svg repo.
dnfield/flutter_svg#337

@LunaGao
Copy link
Owner

LunaGao commented Jan 16, 2022

fixed in v6.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants