Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion third_party/packages/flutter_svg/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## NEXT
## 2.2.4

* Updates README with example to scale SVG without losing quality
* Updates minimum supported SDK version to Flutter 3.35/Dart 3.9.

## 2.2.3
Expand Down
3 changes: 3 additions & 0 deletions third_party/packages/flutter_svg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ import 'dart:ui' as ui;
null,
);

// You can scale the canvas to achieve lossless scaling:
canvas.scale(1.2, 1.2);

// You can draw the picture to a canvas:
canvas.drawPicture(pictureInfo.picture);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ Future<ui.Image> convertSvgOutput() async {
null,
);

// You can scale the canvas to achieve lossless scaling:
canvas.scale(1.2, 1.2);

// You can draw the picture to a canvas:
canvas.drawPicture(pictureInfo.picture);

Expand Down
2 changes: 1 addition & 1 deletion third_party/packages/flutter_svg/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: flutter_svg
description: An SVG rendering and widget library for Flutter, which allows painting and displaying Scalable Vector Graphics 1.1 files.
repository: https://github.com/flutter/packages/tree/main/third_party/packages/flutter_svg
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+flutter_svg%22
version: 2.2.3
version: 2.2.4

environment:
sdk: ^3.9.0
Expand Down