LunaGao / flag_flutter

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

Error on trying to get brazilian flag #10

Closed bdlukaa closed 2 years ago

bdlukaa commented 4 years ago

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 commented 4 years ago

image

Fixed in 2.0.3.

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

LunaGao commented 4 years ago

Create a issue on flutter_svg repo. https://github.com/dnfield/flutter_svg/issues/337

LunaGao commented 2 years ago

fixed in v6.0.0