Function

size

Specify the dimensions (sweep and thickness) for the content.

CurvedFixedSize

@Sampled
@Composable
fun CurvedFixedSize() {
    CurvedLayout(modifier = Modifier.fillMaxSize()) {
        basicCurvedText(
            "45 deg",
            style = { CurvedTextStyle(fontSize = 16.sp, color = Color.Black) },
            modifier =
                CurvedModifier.background(Color.White).size(sweepDegrees = 45f, thickness = 40.dp),
        )
        basicCurvedText(
            "40 dp",
            style = { CurvedTextStyle(fontSize = 16.sp, color = Color.Black) },
            modifier =
                CurvedModifier.background(Color.Yellow).radialSize(40.dp).angularSizeDp(40.dp),
        )
    }
}
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: