compose/remote/Documentation/parts/box.md
The Box Layout manager positions child components independently within its own bounds. It is the most basic container, allowing components to be stacked or positioned relative to the Box's edges.
The measurement process is handled in computeWrapSize and computeSize.
Independent Measurement:
LayoutCompute modifier, its size is calculated based on the provided expressions before final measurement.Intrinsic Size (Wrap Content):
width will be the maximum width among all its visible children.height will be the maximum height among all its visible children.In the internalLayoutMeasure method, children are positioned based on the Box's alignment rules.
Alignment:
START, CENTER, or END of the Box.TOP, CENTER, or BOTTOM of the Box.Stacking: