Skip to content

Commit 5bcde8f

Browse files
stuuupidcatstuuupidcat
andauthored
Update documentation for Size and Rect classes (#168031)
Update documentation for `Size` and `Rect` classes in geometry.dart to correct references for `centerRight` and `bottomCenter` methods. Co-authored-by: stuuupidcat <[email protected]>
1 parent 559c314 commit 5bcde8f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

engine/src/flutter/lib/ui/geometry.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ class Size extends OffsetBase {
533533
/// The offset to the center of the right edge of the rectangle described by the
534534
/// given offset (which is interpreted as the top-left corner) and this size.
535535
///
536-
/// See also [Rect.centerLeft].
536+
/// See also [Rect.centerRight].
537537
Offset centerRight(Offset origin) => Offset(origin.dx + width, origin.dy + height / 2.0);
538538

539539
/// The offset to the intersection of the bottom and left edges of the
@@ -547,7 +547,7 @@ class Size extends OffsetBase {
547547
/// the given offset (which is interpreted as the top-left corner) and this
548548
/// size.
549549
///
550-
/// See also [Rect.bottomLeft].
550+
/// See also [Rect.bottomCenter].
551551
Offset bottomCenter(Offset origin) => Offset(origin.dx + width / 2.0, origin.dy + height);
552552

553553
/// The offset to the intersection of the bottom and right edges of the
@@ -845,7 +845,7 @@ class Rect {
845845

846846
/// The offset to the center of the right edge of this rectangle.
847847
///
848-
/// See also [Size.centerLeft].
848+
/// See also [Size.centerRight].
849849
Offset get centerRight => Offset(right, top + height / 2.0);
850850

851851
/// The offset to the intersection of the bottom and left edges of this rectangle.
@@ -855,7 +855,7 @@ class Rect {
855855

856856
/// The offset to the center of the bottom edge of this rectangle.
857857
///
858-
/// See also [Size.bottomLeft].
858+
/// See also [Size.bottomCenter].
859859
Offset get bottomCenter => Offset(left + width / 2.0, bottom);
860860

861861
/// The offset to the intersection of the bottom and right edges of this rectangle.

0 commit comments

Comments
 (0)