Skip to content

Commit 461ed86

Browse files
committed
update readme
1 parent 06e814e commit 461ed86

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ import 'package:flutter_svg/flutter_svg.dart';
7171
final String rawSvg = '''<svg ...>...</svg>''';
7272
final PictureInfo pictureInfo = await vg.loadPicture(SvgStringLoader(rawSvg), null);
7373
74+
// You can draw the picture to a canvas:
7475
canvas.drawPicture(pictureInfo.picture);
76+
77+
// Or convert the picture to a an image:
78+
final ui.Image image = pictureInfo.picture.toImage(...);
79+
7580
pictureInfo.picture.dispose();
7681
```
7782

0 commit comments

Comments
 (0)