Function

weight

Size the element proportional to its weight relative to other weighted sibling elements in the container (this will be the height in a curvedColumn and the width in a curvedRow).

CurvedWeight

@Sampled
@Composable
fun CurvedWeight() {
    CurvedLayout(modifier = Modifier.fillMaxSize().background(Color.White)) {
        // Evenly spread A, B & C in a 90 degree angle.
        curvedRow(modifier = CurvedModifier.angularSize(90f)) {
            basicCurvedText("A")
            curvedRow(modifier = CurvedModifier.weight(1f)) {}
            basicCurvedText("B")
            curvedRow(modifier = CurvedModifier.weight(1f)) {}
            basicCurvedText("C")
        }
    }
}
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: