LunaGao / flag_flutter

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

[Svg] decoding error and warning #44

Closed bounty1342 closed 3 years ago

bounty1342 commented 3 years ago
I/flutter ( 7714): ht
I/flutter ( 7714): unhandled element metadata; Picture key: AssetBundlePictureKey(bundle: PlatformAssetBundle#5b0e9(), name: "packages/flag/res/flag/ht.svg", colorFilter: null)
I/flutter ( 7714): unhandled element inkscape:path-effect; Picture key: AssetBundlePictureKey(bundle: PlatformAssetBundle#5b0e9(), name: "packages/flag/res/flag/ht.svg", colorFilter: null)
I/flutter ( 7714): unhandled element sodipodi:namedview; Picture key: AssetBundlePictureKey(bundle: PlatformAssetBundle#5b0e9(), name: "packages/flag/res/flag/ht.svg", colorFilter: null)
I/flutter ( 7714): ki
I/flutter ( 7714): ══╡ EXCEPTION CAUGHT BY SVG ╞═══════════════════════════════════════════════════════════════════════
I/flutter ( 7714): The following UnimplementedError was thrown in parseSvgElement:
I/flutter ( 7714): The <style> element is not implemented in this library.
I/flutter ( 7714): 
I/flutter ( 7714): Style elements are not supported by this library and the requested SVG may not render as intended.
I/flutter ( 7714): If possible, ensure the SVG uses inline styles and/or attributes (which are supported), or use a
I/flutter ( 7714): preprocessing utility such as svgcleaner to inline the styles for you.
I/flutter ( 7714): 
I/flutter ( 7714): Picture key: AssetBundlePictureKey(bundle: PlatformAssetBundle#5b0e9(), name:
I/flutter ( 7714):   "packages/flag/res/flag/ki.svg", colorFilter: null)
I/flutter ( 7714): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter ( 7714): rs
I/flutter ( 7714): Warning: Flutter SVG only supports the following formats for `width` and `height` on the SVG root:
I/flutter ( 7714):   width="100%"
I/flutter ( 7714):   width="100px"
I/flutter ( 7714):   width="100" (where the number will be treated as pixels).
I/flutter ( 7714): The supplied value (756.13pt) will be discarded and treated as if it had not been specified.
I/flutter ( 7714): Warning: Flutter SVG only supports the following formats for `width` and `height` on the SVG root:
I/flutter ( 7714):   width="100%"
I/flutter ( 7714):   width="100px"
I/flutter ( 7714):   width="100" (where the number will be treated as pixels).
I/flutter ( 7714): The supplied value (504.09pt) will be discarded and treated as if it had not been specified.