layoutInlineChildren method
- double maxWidth,
- ChildLayouter layoutChild
Computes the layout for every inline child using the given layoutChild
function and the maxWidth
constraint.
Returns a list of PlaceholderDimensions
, representing the layout results
for each child managed by the ContainerRenderObjectMixin mixin.
Since this method does not impose a maximum height constraint on the inline children, some children may become taller than this RenderBox.
See also:
- TextPainter.setPlaceholderDimensions, the method that usually takes the layout results from this method as the input.
Implementation
@protected
List<PlaceholderDimensions> layoutInlineChildren(double maxWidth, ChildLayouter layoutChild) {
return <PlaceholderDimensions>[
for (RenderBox? child = firstChild; child != null; child = childAfter(child))
_layoutChild(child, maxWidth, layoutChild),
];
}