samarthagarwal / FlutterScreens

A collection of Screens and attractive UIs built with Flutter ready to be used in your applications. No external libraries are used. Just download, add to your project and use.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Icon disappears for a split of a second in FlipLoader when using svg

neo-xy opened this issue · comments

Hi,
I modifed code for Fliploader so that it takes a SvgPicture instead of IconData - but with that a bugg came up:
afeter every rotation, svg image disappears for a split second,
does any one maybe know why?And is there anything that can be done to fix that?

best regards!

It could be because of the way the SVG images are being loaded. Since they are files, it is possible that they are read from the storage every time and hence take a little bit to show up. You may have to tweak the code a little bit to implement some sort of caching. I do not have a concrete solution but this is what I would try to rule out first.