VerticalStackSample
@Composable
fun VerticalStackSample() {
VerticalStack(modifier = Modifier.fillMaxWidth().height(364.dp)) {
item(key = 0) {
Card(modifier = Modifier.fillMaxSize().itemDecoration(CardDefaults.shape)) {
Text(
"Item-0",
style = LocalTextStyle.current.copy(textMotion = TextMotion.Animated),
)
}
}
items(count = 10, key = { it + 1 }) { index ->
Card(modifier = Modifier.fillMaxSize().itemDecoration(CardDefaults.shape)) {
Text(
"Item-${index + 1}",
style = LocalTextStyle.current.copy(textMotion = TextMotion.Animated),
)
}
}
}
}