Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect rendering of gradients from a Figma exported SVG. #1058

Open
modulovalue opened this issue Apr 17, 2024 · 2 comments
Open

Incorrect rendering of gradients from a Figma exported SVG. #1058

modulovalue opened this issue Apr 17, 2024 · 2 comments

Comments

@modulovalue
Copy link

Hello Dan,

Consider the following SVG:

invoice_detail_gradient

which appears to be rendered incorrectly by flutter_svg.

Here's what I'm seeing in a Flutter App:

actual

Here's what I was expecting:

expected

Notice how some of the gradients appear to be wrong.

The file was designed in Figma and exported from Figma.

I'm using the following to load that SVG:

... SvgPicture.asset(path_to_asset) ...

With the following flutter release:

Flutter 3.16.7 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ef1af02aea (3 months ago) • 2024-01-11 15:19:26 -0600
Engine • revision 4a585b7929
Tools • Dart 3.2.4 • DevTools 2.28.5

And the newest flutter_svg release:

  flutter_svg: ^2.0.10+1

Do you know if there are any limitations that might make this unlikely to ever be fixed or could this be an actual bug?

@sketchitbiz
Copy link

me .. too is there any updates?

@modulovalue
Copy link
Author

I ended up using PNGs instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants