[basicCurvedText] is a component allowing developers to easily write curved text following the curvature a circle (usually at the edge of a circular screen).
CurvedAndNormalText
@Composable
fun CurvedAndNormalText() {
CurvedLayout(modifier = Modifier.fillMaxSize()) {
basicCurvedText(
"Curved Text",
CurvedModifier.padding(10.dp),
style = {
CurvedTextStyle(fontSize = 16.sp, color = Color.Black, background = Color.White)
},
)
curvedComposable { Box(modifier = Modifier.size(20.dp).background(Color.Gray)) }
curvedComposable {
BasicText(
"Normal Text",
Modifier.padding(5.dp),
TextStyle(fontSize = 16.sp, color = Color.Black, background = Color.White),
)
}
}
}