[vector_graphic] docs: corrected width/height description in VectorGraphic (#11361)
Corrected the documentation for width and height parameters in the VectorGraphic widget.
Fixes flutter/flutter#184116
## Pre-Review Checklist
Test exemption: this is a documentation-only change.
**Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.
[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
diff --git a/packages/vector_graphics/CHANGELOG.md b/packages/vector_graphics/CHANGELOG.md
index e9362f5..17362b1 100644
--- a/packages/vector_graphics/CHANGELOG.md
+++ b/packages/vector_graphics/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 1.1.21
+
+* Corrected width/height parameter documentation in VectorGraphic widget.
+
## 1.1.20
* Updates minimum supported SDK version to Flutter 3.35/Dart 3.9.
diff --git a/packages/vector_graphics/lib/src/vector_graphics.dart b/packages/vector_graphics/lib/src/vector_graphics.dart
index c35cf08..a80ab56 100644
--- a/packages/vector_graphics/lib/src/vector_graphics.dart
+++ b/packages/vector_graphics/lib/src/vector_graphics.dart
@@ -155,11 +155,11 @@
final BytesLoader loader;
/// If specified, the width to use for the vector graphic. If unspecified,
- /// the vector graphic will take the width of its parent.
+ /// the vector graphic will take the width of the graphic.
final double? width;
/// If specified, the height to use for the vector graphic. If unspecified,
- /// the vector graphic will take the height of its parent.
+ /// the vector graphic will take the height of the graphic.
final double? height;
/// How to inscribe the picture into the space allocated during layout.
diff --git a/packages/vector_graphics/pubspec.yaml b/packages/vector_graphics/pubspec.yaml
index 25abea4..3846136 100644
--- a/packages/vector_graphics/pubspec.yaml
+++ b/packages/vector_graphics/pubspec.yaml
@@ -2,7 +2,7 @@
description: A vector graphics rendering package for Flutter using a binary encoding.
repository: https://github.com/flutter/packages/tree/main/packages/vector_graphics
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+vector_graphics%22
-version: 1.1.20
+version: 1.1.21
environment:
sdk: ^3.9.0