We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06e814e commit 461ed86Copy full SHA for 461ed86
README.md
@@ -71,7 +71,12 @@ import 'package:flutter_svg/flutter_svg.dart';
71
final String rawSvg = '''<svg ...>...</svg>''';
72
final PictureInfo pictureInfo = await vg.loadPicture(SvgStringLoader(rawSvg), null);
73
74
+// You can draw the picture to a canvas:
75
canvas.drawPicture(pictureInfo.picture);
76
+
77
+// Or convert the picture to a an image:
78
+final ui.Image image = pictureInfo.picture.toImage(...);
79
80
pictureInfo.picture.dispose();
81
```
82
0 commit comments