dnfield / flutter_svg

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

Grid problems in gradients #1063

Closed AlexisArcs closed 4 months ago

AlexisArcs commented 4 months ago

Hi, I'm experiencing artifacts on iOS when using gradients. When using a viewbox different from the final image size (e.g. a viewbox at 0, 0, 2048, 2048 and an image rendered at 350x350) a "grid" appears in the gradients.

Viewbox of 2048

Simulator Screenshot - iPhone 15 Pro - 2024-05-17 at 13 15 03

Viewbox of 350 (equals to the render size)

Simulator Screenshot - iPhone 15 Pro - 2024-05-17 at 13 16 09

Flutter Doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.6, on macOS 14.3 23D56 darwin-arm64, locale fr-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.89.0)
[✓] Connected device (4 available)            
[✓] Network resources

• No issues found!

flutter_svg

Version : 2.0.10+1

jonahwilliams commented 4 months ago

You need to file rendering bugs on the Flutter repo and not here. This is likely the same as https://github.com/flutter/flutter/issues/145481