reactormonk
02/06/2024, 2:10 PMColumn(horizontalAlignment = Alignment.CenterHorizontally, verticalArrangement = Arrangement.Bottom) {
Box(modifier = Modifier.padding(vertical = 40.dp)) {
Text(
"$name $message",
style = MaterialTheme.typography.titleLarge.plus(
TextStyle(
fontSize = 120.sp,
color = Color.White,
drawStyle = style
)
),
)
Text(
"$name $message",
style = MaterialTheme.typography.titleLarge.plus(
TextStyle(
fontSize = 120.sp,
color = Color.Black,
)
),
)
}
}
Which works fine if the text fits on one line. However, if the text breaks into a second line, the first line overlaps with the second.