biocarl/drawing_animation

Problem with colors

vico-aguado opened this issue · 3 comments

Hi @biocarl!

I tried the example3 but the page with the color example doesn't seem to be working, the lines painting it black. :(

Thanks!

@vico-aguado , as stated

Supported SVG specifications

Only path elements () are supported for now. I'm currently considering to add flutter_svg as dependency for more complete SVG parsing.
Attributes
stroke, only Hex-Color without alpha for now
stroke-width
style, but only the both fields above
No transforms are supported, yet.

If you want to change the color of the stroke lines, add stroke="color-code" and stroke-width="pixels" to path element.

ex:

<path stroke="#ffffff" stroke-width="5" fill="#ffffff" d="M473.6,92.43.... " />

I'm currently considering to add flutter_svg as dependency for more complete SVG parsing.

that would be awesome if you implement it.

@vico-aguado @r21meghashyam Actually there was an issue with the colors, sorry for fixing it only now.

See [Fix] Problem with colors e90ec11