Hello,
For versions 1.1.6 and below I used the following code to convert SVG to Image:
final root = await svg.fromSvgString(...);
final picture = root.toPicture(size: size);
final image = await picture.toImage(...);
Now this approach is deprecated, but I still need to get a bitmap from SVG bypassing Widget. Any idea how to accomplish this?
Thank you!
Hello,
For versions 1.1.6 and below I used the following code to convert SVG to Image:
Now this approach is deprecated, but I still need to get a bitmap from SVG bypassing Widget. Any idea how to accomplish this?
Thank you!