Skip to content

Commit 6aec00b

Browse files
authored
[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.
1 parent f1cdf0b commit 6aec00b

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

packages/vector_graphics/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.1.21
2+
3+
* Corrected width/height parameter documentation in VectorGraphic widget.
4+
15
## 1.1.20
26

37
* Updates minimum supported SDK version to Flutter 3.35/Dart 3.9.

packages/vector_graphics/lib/src/vector_graphics.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,11 @@ class VectorGraphic extends StatefulWidget {
155155
final BytesLoader loader;
156156

157157
/// If specified, the width to use for the vector graphic. If unspecified,
158-
/// the vector graphic will take the width of its parent.
158+
/// the vector graphic will take the width of the graphic.
159159
final double? width;
160160

161161
/// If specified, the height to use for the vector graphic. If unspecified,
162-
/// the vector graphic will take the height of its parent.
162+
/// the vector graphic will take the height of the graphic.
163163
final double? height;
164164

165165
/// How to inscribe the picture into the space allocated during layout.

packages/vector_graphics/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: vector_graphics
22
description: A vector graphics rendering package for Flutter using a binary encoding.
33
repository: https://github.com/flutter/packages/tree/main/packages/vector_graphics
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+vector_graphics%22
5-
version: 1.1.20
5+
version: 1.1.21
66

77
environment:
88
sdk: ^3.9.0

0 commit comments

Comments
 (0)