Unverified Commit ad883695 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Doc fixes for dry layout (#71868)

parent 32ab5402
......@@ -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
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment