This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun AutoTextSizeCard() { | |
var textLength by remember { mutableStateOf(50) } | |
val baseText = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " | |
val longText = baseText.repeat(textLength / baseText.length + 1).substring(0, textLength) | |
Card( | |
modifier = Modifier | |
.fillMaxWidth() |