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

Slovakian flag is not displayed #12

Closed
strigePC opened this issue May 14, 2020 · 1 comment
Closed

Slovakian flag is not displayed #12

strigePC opened this issue May 14, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@strigePC
Copy link

When I try to display Slovakian flag using the Flag.getFlag(country: 'sk', height: 20, width: 20), I get the following error:

════════ Exception caught by SVG ════════════════════════════════════
The following UnimplementedError was thrown in parseSvgElement:
The <style> element is not implemented in this library.

Style elements are not supported by this library and the requested SVG may not render as intended.

If possible, ensure the SVG uses inline styles and/or attributes (which are supported), or use a preprocessing utility such as svgcleaner to inline the styles for you.

Picture key: AssetBundlePictureKey(bundle: PlatformAssetBundle#f676f(), name: "packages/flag/res/flag/sk.svg", colorFilter: null)
══════════════════════════════════════════════════════════════

Flutter: v1.17.0
Dart: v2.8.1
Device: OnePlus 7T Android 10
Package version: flag v2.0.3

@LunaGao LunaGao added the bug Something isn't working label May 14, 2020
LunaGao pushed a commit that referenced this issue May 14, 2020
@LunaGao
Copy link
Owner

LunaGao commented May 14, 2020

fixed in 2.0.4

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