Код: Выделить всё
@Composable
fun allCustomers(navController: NavController) {
val customerLists = listOf(
ClickableText(text = AnnotatedString("Customer1"),
onClick = {}),
ClickableText(text = AnnotatedString("Customer2"),
onClick = {}),
ClickableText(text = AnnotatedString("Customer3"),
onClick = {}),
ClickableText(text = AnnotatedString("Customer4"),
onClick = {}),
ClickableText(text = AnnotatedString("Customer5"),
onClick = {}),
ClickableText(text = AnnotatedString("Customer6"),
onClick = {}),
ClickableText(text = AnnotatedString("Customer7"),
onClick = {}),
ClickableText(text = AnnotatedString("Customer8"),
onClick = {}),
ClickableText(text = AnnotatedString("Customer9"),
onClick = {}),
ClickableText(text = AnnotatedString("Customer10"),
onClick = {}),
)
LazyColumn(
modifier = Modifier.fillMaxHeight(),
contentPadding = PaddingValues(5.dp),
) {
// items(1){cus->
// customerLists
// }
items(1, itemContent = {
customerLists.forEachIndexed { index, item ->
customerLists
// Text(text = item,
// color = Color(0xFFFCA4FF),
// fontWeight = FontWeight.Bold,
// fontSize = 24.sp,
// lineHeight = 120.sp)
}
})
}
}
Код: Выделить всё
Text(
text = item,
color = Color(0xFFFCA4FF),
fontWeight = FontWeight.Bold,
fontSize = 24.sp,
lineHeight = 120.sp,
)
Подробнее здесь: https://stackoverflow.com/questions/787 ... olumn-to-l