Composable Function

SpatialCurvedRow

A layout composable that arranges its children in a curved horizontal sequence.

SimpleSpatialCurvedRowSample

@Sampled
@Composable
public fun SimpleSpatialCurvedRowSample() {
    Subspace {
        SpatialCurvedRow(
            curveRadius = 300.dp,
            verticalAlignment = SpatialAlignment.CenterVertically,
            horizontalArrangement = SpatialArrangement.Center,
        ) {
            SpatialPanel(SubspaceModifier.weight(0.3f)) { Text("Left Panel") }
            SpatialPanel(SubspaceModifier.weight(0.3f)) { Text("Center Panel") }
            SpatialPanel(SubspaceModifier.weight(0.3f)) { Text("Right 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: