dnfield / flutter_svg

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

SVG disappear #809

Closed kirill-21 closed 1 year ago

kirill-21 commented 1 year ago

https://github.com/dnfield/flutter_svg/issues/760

In this issue SVGs disappear on IOS, i have the same problem on Windows. No errors are printed to FlutterError.onError callback. I have no idea how to repeat it, they just disappear after some time.

Sometimes it happens after changing theme brightness, sometimes after minimizing->maximizing the app, sometimes after using setState. I just leave app launched in background while doing something else and when i return and do something inside the app svgs fade away. (This happens both in Debug and Release mode)

Issue appeared somewhere in latest updates of package/flutter version.

kirill-21 commented 1 year ago

https://docs.flutter.dev/development/tools/devtools/performance#timeline-events-chart - from there you should also be able to export the file in JSON format so we can view it.

Or, you can do it from the observatory on the timeline page if you're more familiar with the observatory than devtools.

By the way there is some issue with color property of SvgTheme class image

bstolinski commented 1 year ago

I also noticed very slow loading of icons. flutter_svg master branch (https://github.com/dnfield/flutter_svg/commit/c951f211866ae65e28d59db2d6c8a2b222c53fca). Flutter 3.7.0, iOS/Android emulator/device, Impeller on/off. @dnfield let me know if you need anything.

dlugi57 commented 1 year ago

Hello everyone, I have the same issue of dissapearing icons its so random that I couldn't get the repro scenario. Do you have some solution to this issue ? Recently I updated version to -> ^1.1.6. and the problem still persist

mattermoran commented 1 year ago

@dlugi57 so far we haven't experienced it in 2.0.0-dev.2. Though it seems to have a slower render times but it's only noticeable in debug mode. In release mode it's quite instant (at least on high-end devices, haven't tried on others yet)

dlugi57 commented 1 year ago

Thx @mattermoran! I know that you have waited for new flutter version to publish 2.0 version but I will ask one more time do you have some approximate date of publish?

mattermoran commented 1 year ago

@dlugi57 oh, I'm not a maintainer :)

eli1stark commented 1 year ago

@dlugi57 What's the problem reference main in the pubspec.yaml? This is open source project and issues are resolved based on time and availability. No reason to ask resolution over and over again.

dlugi57 commented 1 year ago

@eli1stark I was a little bit lost in all conversation topics, and a little bit frustrating that the probles still persist and couldn't get any solution. Sorry for inconvenience

dnfield commented 1 year ago

@kirill-21 - are you able to confirm whether you still see the slower behavior in release mode?

bstolinski commented 1 year ago

@dnfield master, iPhone 12, release mode, Impeller on, flutter 3.7.1. It works pretty well. I will let you know if my team notices a problem.

https://user-images.githubusercontent.com/53336850/216285377-0c41f041-ca4d-4fb6-b619-0499c5e38685.mp4

kirill-21 commented 1 year ago

@kirill-21 - are you able to confirm whether you still see the slower behavior in release mode?

No, loading is much faster in release mode

dnfield commented 1 year ago

flutter_svg 2.0 is published and doesn't have this issue, closing.