Flutter_svg: SVG pictures are damaged in release mode using SKIA engine

Created on 21 Oct 2020  路  5Comments  路  Source: dnfield/flutter_svg

As you may know, there is a shader compilation jank problem in Flutter apps. To handle this problem I had to turn off metal support in my flutter iOS project and use SKIA instead.

Pictures look good in debug mode, but kinda damaged in release mode.
Examples:
1)
release:
image

debug:
image

2)
release:
image

debug:
image

3)
release:
image

debug:
image

Most helpful comment

Unfortunately, janks are too severe in my app. I cannot deploy to production with them. With SKIA the app works way better.
Thank you for the information! Hope Flutter team will solve the problem asap

All 5 comments

Running in OpenGL on macOS is no longer supported on stable Flutter. This is almost certainly a bug or regression in Skia, but at this point we're only working on fixing Metal related issues because that's all we're able to support upstream.

See also: flutter/flutter#61045

That is frustrating. Don't you know any workarounds regarding SVG pictures rendering?

No - in fact, you are likely to see this issue pop up in other ways unexpectedly if you continue to try to use the Open GL backend on iOS. I really get that this is frustrating though, and I'm sorry it's causing you difficulties. It may be worth weighing the value of upgrading Flutter vs. the value of a little more jank on Metal until 60267 is resolved.

Unfortunately, janks are too severe in my app. I cannot deploy to production with them. With SKIA the app works way better.
Thank you for the information! Hope Flutter team will solve the problem asap

Was this page helpful?
0 / 5 - 0 ratings