dnfield / flutter_svg

SVG parsing, rendering, and widget library for Flutter
MIT License
1.64k stars 449 forks source link

Advice on how to implement marker-end in library #1039

Open Zeebzog opened 4 months ago

Zeebzog commented 4 months ago

Hi,

I do need to know how to resolve this issue, if necessary I will try to address in the code if you point me in the right direction. I appreciate that this is a known issue and the library does not support markers, but my comment on the previous request got no response.

Thank you.

The library is great, but I also need marker-end implemented. The library fails to draw the arrow head of the svg below.

<svg width="2788" height="1232" viewBox="0 -1232 2788 1232" xmlns="http://www.w3.org/2000/svg"><marker id="arrow" refX="1" refY="5" markerWidth="4" markerHeight="4" viewBox="0 0 10 10" orient="auto" ><path d="M 0 0 L 10 5 L 0 10 z"fill="black" /><line x1="104" y1="-225" x2="164" y2="-225" stroke="black" stroke-width="2" marker-`end="url(#arrow)" />

Thank you.