Doc fixes for dry layout (#71868)

This commit is contained in:
Michael Goderbauer
2020-12-07 15:13:18 -08:00
committed by GitHub
parent 32ab540295
commit ad88369569
2 changed files with 6 additions and 4 deletions

View File

@@ -1824,9 +1824,10 @@ abstract class RenderBox extends RenderObject {
/// Computes the value returned by [getDryLayout]. Do not call this
/// function directly, instead, call [getDryLayout].
///
/// Override in subclasses that implement [performLayout] or [performResize].
/// This method should return the [Size] that this [RenderBox] would like to
/// be given the provided [BoxConstraints].
/// Override in subclasses that implement [performLayout] or [performResize]
/// or when setting [sizedByParent] to true without overriding
/// [performResize]. This method should return the [Size] that this
/// [RenderBox] would like to be given the provided [BoxConstraints].
///
/// The size returned by this method must match the [size] that the
/// [RenderBox] will compute for itself in [performLayout] (or

View File

@@ -1818,7 +1818,8 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im
///
/// Subclasses that return true must not change the dimensions of this render
/// object in [performLayout]. Instead, that work should be done by
/// [performResize].
/// [performResize] or - for subclasses of [RenderBox] - in
/// [RenderBox.computeDryLayout].
@protected
bool get sizedByParent => false;