From 885dbd8a022955b156144d9e3d4f8a2503f6d995 Mon Sep 17 00:00:00 2001 From: nilsreichardt Date: Fri, 17 Oct 2025 14:39:02 -0700 Subject: [PATCH 1/2] [flutter_svg] Update `allowDrawingOutsideOfViewBox` to `allowDrawingOutsideViewBox` in parameter docs --- third_party/packages/flutter_svg/lib/svg.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/third_party/packages/flutter_svg/lib/svg.dart b/third_party/packages/flutter_svg/lib/svg.dart index 0e61acfe7d1..58f7172fc13 100644 --- a/third_party/packages/flutter_svg/lib/svg.dart +++ b/third_party/packages/flutter_svg/lib/svg.dart @@ -65,7 +65,7 @@ class SvgPicture extends StatelessWidget { /// If `matchTextDirection` is set to true, the picture will be flipped /// horizontally in [TextDirection.rtl] contexts. /// - /// The `allowDrawingOutsideOfViewBox` parameter should be used with caution - + /// The `allowDrawingOutsideViewBox` parameter should be used with caution - /// if set to true, it will not clip the canvas used internally to the view box, /// meaning the picture may draw beyond the intended area and lead to undefined /// behavior or additional memory overhead. @@ -116,7 +116,7 @@ class SvgPicture extends StatelessWidget { /// If `matchTextDirection` is set to true, the picture will be flipped /// horizontally in [TextDirection.rtl] contexts. /// - /// The `allowDrawingOutsideOfViewBox` parameter should be used with caution - + /// The `allowDrawingOutsideViewBox` parameter should be used with caution - /// if set to true, it will not clip the canvas used internally to the view box, /// meaning the picture may draw beyond the intended area and lead to undefined /// behavior or additional memory overhead. @@ -222,7 +222,7 @@ class SvgPicture extends StatelessWidget { /// If `matchTextDirection` is set to true, the picture will be flipped /// horizontally in [TextDirection.rtl] contexts. /// - /// The `allowDrawingOutsideOfViewBox` parameter should be used with caution - + /// The `allowDrawingOutsideViewBox` parameter should be used with caution - /// if set to true, it will not clip the canvas used internally to the view box, /// meaning the picture may draw beyond the intended area and lead to undefined /// behavior or additional memory overhead. @@ -287,7 +287,7 @@ class SvgPicture extends StatelessWidget { /// If `matchTextDirection` is set to true, the picture will be flipped /// horizontally in [TextDirection.rtl] contexts. /// - /// The `allowDrawingOutsideOfViewBox` parameter should be used with caution - + /// The `allowDrawingOutsideViewBox` parameter should be used with caution - /// if set to true, it will not clip the canvas used internally to the view box, /// meaning the picture may draw beyond the intended area and lead to undefined /// behavior or additional memory overhead. @@ -346,7 +346,7 @@ class SvgPicture extends StatelessWidget { /// If `matchTextDirection` is set to true, the picture will be flipped /// horizontally in [TextDirection.rtl] contexts. /// - /// The `allowDrawingOutsideOfViewBox` parameter should be used with caution - + /// The `allowDrawingOutsideViewBox` parameter should be used with caution - /// if set to true, it will not clip the canvas used internally to the view box, /// meaning the picture may draw beyond the intended area and lead to undefined /// behavior or additional memory overhead. @@ -402,7 +402,7 @@ class SvgPicture extends StatelessWidget { /// If `matchTextDirection` is set to true, the picture will be flipped /// horizontally in [TextDirection.rtl] contexts. /// - /// The `allowDrawingOutsideOfViewBox` parameter should be used with caution - + /// The `allowDrawingOutsideViewBox` parameter should be used with caution - /// if set to true, it will not clip the canvas used internally to the view box, /// meaning the picture may draw beyond the intended area and lead to undefined /// behavior or additional memory overhead. From 3f9f30b61867a89643439ed1e4be9e02231fc7ff Mon Sep 17 00:00:00 2001 From: nilsreichardt Date: Fri, 17 Oct 2025 14:40:29 -0700 Subject: [PATCH 2/2] Update version and changelog --- third_party/packages/flutter_svg/CHANGELOG.md | 4 ++++ third_party/packages/flutter_svg/pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/third_party/packages/flutter_svg/CHANGELOG.md b/third_party/packages/flutter_svg/CHANGELOG.md index a6e42f55cbf..e663268cee2 100644 --- a/third_party/packages/flutter_svg/CHANGELOG.md +++ b/third_party/packages/flutter_svg/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.2.2 + +* Fixes typo of `allowDrawingOutsideViewBox` in doc comments. + ## 2.2.1 * Fixes message buffer access in SvgAssetLoader. diff --git a/third_party/packages/flutter_svg/pubspec.yaml b/third_party/packages/flutter_svg/pubspec.yaml index 152ee9137ea..c1e8b32a6e5 100644 --- a/third_party/packages/flutter_svg/pubspec.yaml +++ b/third_party/packages/flutter_svg/pubspec.yaml @@ -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.1 +version: 2.2.2 environment: sdk: ^3.7.0