Dan Field
Dan Field
SVG widget is not render in a proper position while paint using paintChild method in PaintingContext
I have definitely introduce da bug in flutter_svg related to this - @jonahwilliams noticed something similar recently. Argh.
Yes. Please share an svg that fails to render.
This SVG uses ``, which is why it doesn't work. It just so happens someone else asked me a very similar question yesterday. I'm not sure when I'll have time...
FWIW, you can generally avoid using pattern elements in SVGs, particularly to display images, but there doesn't seem to be a good reason yet to not support this in flutter_svg.
Here's an example SVG that should render correctly, pulled from MDN: ```svg ```
In local testing using the SVG reported in #62, this makes no visual difference.
Ahh so it sounds like I missed updating a lower bound constraint on the package. That's unfortunate. I don't have a great way to fix that. If you're seeing this...
You use `svgRoot.draw` and give it the canvas. `rawSvg` is a string here. You could load it from a file - or just use the `SvgPicture.file` or `SvgPicture.asset`. I'd be...
Ahh sorry, you'd want loadAsset for that. SvgPicture is a widget you just put in the tree
We can probably even do better if flutter_svg keeps an RTree to track overlapping draws.