From 65a826728db63e25e364181d0880cb7047e0caff Mon Sep 17 00:00:00 2001 From: Kate Lovett Date: Wed, 13 Apr 2022 16:24:07 -0500 Subject: [PATCH] Correct docs to refer to replacement render object (#101858) --- .../src/rendering/debug_overflow_indicator.dart | 4 ++-- .../flutter/lib/src/rendering/shifted_box.dart | 17 +++++++++-------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/packages/flutter/lib/src/rendering/debug_overflow_indicator.dart b/packages/flutter/lib/src/rendering/debug_overflow_indicator.dart index 8f5a4edf50..49ce63b41f 100644 --- a/packages/flutter/lib/src/rendering/debug_overflow_indicator.dart +++ b/packages/flutter/lib/src/rendering/debug_overflow_indicator.dart @@ -85,8 +85,8 @@ class _OverflowRegionData { /// /// See also: /// -/// * [RenderConstraintsTransformBox], [RenderUnconstrainedBox] and -/// [RenderFlex], for examples of classes that use this indicator mixin. +/// * [RenderConstraintsTransformBox], [RenderConstraintsTransformBox], and +/// [RenderFlex] for examples of classes that use this indicator mixin. mixin DebugOverflowIndicatorMixin on RenderObject { static const Color _black = Color(0xBF000000); static const Color _yellow = Color(0xBFFFFF00); diff --git a/packages/flutter/lib/src/rendering/shifted_box.dart b/packages/flutter/lib/src/rendering/shifted_box.dart index 3be9cad449..88de6d33a3 100644 --- a/packages/flutter/lib/src/rendering/shifted_box.dart +++ b/packages/flutter/lib/src/rendering/shifted_box.dart @@ -538,9 +538,9 @@ class RenderPositionedBox extends RenderAligningShiftedBox { /// /// See also: /// -/// * [RenderUnconstrainedBox] for a render object that allows its children -/// to render themselves unconstrained, expands to fit them, and considers -/// overflow to be an error. +/// * [RenderConstraintsTransformBox] for a render object that applies an +/// arbitrary transform to its constraints before sizing its child using +/// the new constraints, treating any overflow as error. /// * [RenderSizedOverflowBox], a render object that is a specific size but /// passes its original constraints through to its child, which it allows to /// overflow. @@ -675,8 +675,9 @@ class RenderConstrainedOverflowBox extends RenderAligningShiftedBox { /// * [RenderConstrainedOverflowBox], which renders a box that imposes different /// constraints on its child than it gets from its parent, possibly allowing /// the child to overflow the parent. -/// * [RenderUnconstrainedBox] which allows its children to render themselves -/// unconstrained, expands to fit them, and considers overflow to be an error. +/// * [RenderConstraintsTransformBox] for a render object that applies an +/// arbitrary transform to its constraints before sizing its child using +/// the new constraints, treating any overflow as error. class RenderConstraintsTransformBox extends RenderAligningShiftedBox with DebugOverflowIndicatorMixin { /// Creates a [RenderBox] that sizes itself to the child and modifies the /// [constraints] before passing it down to that child. @@ -942,9 +943,9 @@ class RenderUnconstrainedBox extends RenderConstraintsTransformBox { /// /// See also: /// -/// * [RenderUnconstrainedBox] for a render object that allows its children -/// to render themselves unconstrained, expands to fit them, and considers -/// overflow to be an error. +/// * [RenderConstraintsTransformBox] for a render object that applies an +/// arbitrary transform to its constraints before sizing its child using +/// the new constraints, treating any overflow as error. /// * [RenderConstrainedOverflowBox] for a render object that imposes /// different constraints on its child than it gets from its parent, /// possibly allowing the child to overflow the parent.