Column
Column is a braced layout container whose main axis is vertical.
Arrange vertical content
Section titled “Arrange vertical content”Column { Text("Account", TextRole::Title), TextField(name).Label("Display name"), Button("Save").OnClick(SaveAccount),}.With( Padding(24.0F), Spacing(12.0F), CrossAlign(CrossAxisAlignment::Stretch))Spacing sets the gap between adjacent children.
MainAlign distributes remaining vertical space; CrossAlign positions or stretches children horizontally.
Children carrying Grow(factor) share available vertical space proportionally.
Preserve child order and identity
Section titled “Preserve child order and identity”The container accepts individual View values and flattened Views groups from ForEach.
Children retain declaration order for layout, painting, hit testing, and semantics.
- Construction:
Column { children... }or an explicitstd::vector<View>through its inheritedLayoutconstructor. - Layout modifiers:
Spacing,MainAlign,CrossAlign,Padding,Frame. - Child metadata:
Grow.
Use Row for horizontal placement and Flow when items should wrap.

