dnfield / flutter_svg

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

InkSCape MeshGradient implementation Request #476

Open taerilan opened 3 years ago

taerilan commented 3 years ago

Hello there, I would like to make request for implementation of InkScape meshGradient in your package,

I believe this would be beneficial for your whole project as InkScape meshGradient gives SVG images depth, 3d illusion that brings whole SVG image to life in 3d like way.

Ive included in code below simple SVG code with meshGradient so you can check it out, couldn't upload SVG image directly, Ive also uploaded PNG image of a piano key created in InkScape with meshGradient, so you could see how it looks like.

Thought that issue with meshGradient in your package is similar to linearGradient issue, though after managing to solve linearGradient issue (when saving InkScape project as Optimized SVG, it works in your package as charm), meshGradient was still not working. In your package I've found references for linearGradient and radialGradient, though not meshGradient, so it seems meshGradient is not implemented at all?

Hope you will consider adding it, as it would add quality and aesthetic beauty to my and other peoples projects.

Thank

bku bkd bku

<?xml version="1.0" encoding="UTF-8"?>

image/svg+xml
dnfield commented 3 years ago

This would require getting Flutter to support mesh gradients upstream. I think that's probably doable.

On the web it's a bit trickier.