Open marcoberetta96 opened 2 years ago
How to preload a SVG showed as following?
Container( child: DecoratedBox( decoration: BoxDecoration( image: DecorationImage( repeat: ImageRepeat.repeat, image: svg_provider.Svg( "assets/test.png", size: Size(200, 200), ), colorFilter: ColorFilter.mode( Colors.black12, BlendMode.srcIn, ), ), ), child: Container(), ), ),
I tried with this one but it does not preload the SVG.
precachePicture( ExactAssetPicture(SvgPicture.svgStringDecoderBuilder, "assets/test.png"), null, );
After the SVG is showed once, then it's always fast to show up.
@marcoberetta96 did you find a solution ? I have the same problem
@pbouttier no solution
+1 to this issue 😞
How to preload a SVG showed as following?
I tried with this one but it does not preload the SVG.
After the SVG is showed once, then it's always fast to show up.