pub fn Column<F>(__arg0: Modifier, __arg1: ColumnSpec, __arg2: F) -> NodeIdwhere
F: FnMut() + 'static,Expand description
A layout composable that places its children in a vertical sequence.
§When to use
Use Column to arrange items top-to-bottom. For horizontal arrangement, use Row.
§Arguments
modifier- Modifiers to apply to the column layout.spec- Configuration for vertical arrangement and horizontal alignment.content- The children composables to layout.
§Example
ⓘ
Column(
Modifier::padding(16.0),
ColumnSpec::default().vertical_arrangement(LinearArrangement::spaced_by(8.0)),
|| {
Text("Title", Modifier::empty());
Text("Subtitle", Modifier::empty());
}
);