flutter-clutter / svg-to-flutter-path-converter

Convert your SVG file directly to Flutter paths and prevent all the messing with bezier curves.
57 stars 21 forks source link

support svg stroke commands #3

Closed obiwanzenobi closed 2 years ago

obiwanzenobi commented 2 years ago

Examples:

<svg height="400" width="450">
  <path d="M 100 350 q 150 -300 300 0 Z" stroke="black" stroke-width="5" fill="blue" />
</svg>

and

<svg height="80" width="300">
  <g fill="none">
    <path stroke="red" d="M5 20 l215 0" />
    <path stroke="black" d="M5 40 l215 0" />
    <path stroke="blue" d="M5 60 l215 0" />
  </g>
</svg>