Composable Function

SpatialColumn

A layout composable that arranges its children in a vertical sequence.

SpatialColumnSample

@Sampled
@Composable
public fun SpatialColumnSample() {
    Subspace {
        SpatialColumn(
            horizontalAlignment = SpatialAlignment.CenterHorizontally,
            verticalArrangement = SpatialArrangement.Center,
        ) {
            SpatialPanel(SubspaceModifier.weight(0.3f)) { Text("Top Panel") }
            SpatialPanel(SubspaceModifier.weight(0.3f)) { Text("Middle Panel") }
            SpatialPanel(SubspaceModifier.weight(0.3f)) { Text("Bottom Panel") }
        }
    }
}
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: