RenderBoxChildLayout class

Adapter that makes a RenderBox compatible with the flexbox layout system.

RenderBoxChildLayout implements the ChildLayout interface for Flutter's RenderBox objects, allowing them to participate in flexbox layouts. It provides the bridge between Flutter's rendering system and the flexbox layout algorithm, handling layout calculations, caching, and positioning for individual render box children.

Mixed-in types

Constructors

RenderBoxChildLayout.new(RenderBox renderBox, RenderLayoutBox parent)

Properties

debugKey Object?
Debug key for identifying this child in debug output.
no setteroverride
hashCode int
The hash code for this object.
no setteroverride
layoutCache ChildLayoutCache
The cache for storing computed layout results.
no setteroverride
layoutData LayoutData
The layout data containing this child's layout properties.
no setteroverride
nextSibling ChildLayout?
The next sibling in the layout tree.
no setteroverride
offset LayoutOffset
The current offset (position) of this child after layout.
no setteroverride
parent RenderLayoutBox
final
previousSibling ChildLayout?
The previous sibling in the layout tree.
no setteroverride
renderBox RenderBox
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size LayoutSize
The current size of this child after layout.
no setteroverride

Methods

clearCache() → void
Clears all cached layout calculations.
override
dryLayout(LayoutConstraints constraints) LayoutSize
Performs a dry layout without modifying the child's state.
override
getDistanceToBaseline(LayoutTextBaseline baseline) double
Returns the distance from the top of this child to the specified baseline.
override
getMaxIntrinsicHeight(double width) double
Returns the maximum intrinsic height of this child at the given width.
override
getMaxIntrinsicWidth(double height) double
Returns the maximum intrinsic width of this child at the given height.
override
getMinIntrinsicHeight(double width) double
Returns the minimum intrinsic height of this child at the given width.
override
getMinIntrinsicWidth(double height) double
Returns the minimum intrinsic width of this child at the given height.
override
layout(LayoutOffset offset, LayoutSize size, OverflowBounds overflowBounds) → void
Performs the actual layout of this child within the given constraints.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override