compose/remote/Documentation/parts/row.md
The Row Layout manager positions child components horizontally one after another. It supports intrinsic sizing, weight-based distribution, and various horizontal and vertical alignment strategies.
The measurement process is handled in computeWrapSize and computeSize.
Weight Distribution:
WidthModifier.weight).Intrinsic Size:
width of the Row is the sum of all children's measured widths plus the spacedBy gaps between them.height of the Row is the maximum height among all measured children.Once children are measured, the internalLayoutMeasure method determines their final (x, y) coordinates.
Horizontal Positioning:
Vertical Positioning:
AlignBy modifiers, they are aligned based on their specified baseline or anchor.Spacing:
spacedBy value is added between each child in all positioning modes.