Skip to content

After methods deprecation, how can I convert SVG to the bitmap without Widget? #858

@arsenioo

Description

@arsenioo

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions