biocarl / drawing_animation

A Flutter library for gradually painting SVG path objects on canvas (drawing line animation).
https://pub.dartlang.org/packages/drawing_animation
BSD 2-Clause "Simplified" License
488 stars 123 forks source link

Problem with colors #4

Closed vico-aguado closed 5 years ago

vico-aguado commented 5 years ago

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!

r21meghashyam commented 5 years ago

@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.... " />

tibbiyelininja commented 5 years ago

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

that would be awesome if you implement it.

biocarl commented 5 years ago

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

See [Fix] Problem with colors e90ec1153fca4b0482bef0a161e6bc5fc808f3bc