Open Ionaru opened 2 years ago
This one is relatively complicated and I'm sure there are bugs here. There are likely issues in the way the use
and symbol
are getting processed.
I'm going to open some separate issues with reproducible behaviour, I'll attempt to make the SVG code as small as possible.
is my issue #641 related to this? Sorry I don't know much about how SVGs work.
I don't think so, see my comment on your issue.
Looks like there's still one more issue with the way fonts are rendered. I don't know when I'll be able to get back to that, but if you can create a smaller repro again it helps.
I'll see if I can isolate the issue.
Hi, I am not sure if this is the correct place to discuss my issue, because I am not sure it is flutter_svg related.
Description
I'm trying to display an SVG in my application, but the result is not correct. The SVG contains a series of
<defs>
and<use>
elements where I think the problem lies.The original SVG: https://evemaps.dotlan.net/svg/Solitude.svg I am aware this SVG contains
<style>
,<script>
, which are not supported by flutter_svg. So I used svgo to clean up the file and got rid of elements I do not need, this is the result: https://gist.github.com/Ionaru/52f1c321c4587c05e512fabe8d0bb26d.The cleaned up SVG seems to render correctly in browsers and GitHub, but when I pass that file to flutter_svg, it renders like this:
My flutter code for this widget is extremely simple, with the file hosted on a local webserver.
What's going wrong here? Is the modified SVG not valid or is there something in it that flutter_svg cannot parse?
Additional info
Flutter doctor output:
flutter_svg version: 1.0.0