Slide 115
Slide 115 text
Copyright 2023 m.coder All Rights Reserved.
@Composable
fun CatListItem(
item: Cat,
) {
Card(...) {
Row(
verticalAlignment = Alignment.CenterVertically
) {
KamelImage(
modifier = Modifier.fillMaxHeight()
.aspectRatio(1.0f),
contentScale = ContentScale.Crop,
resource = asyncPainterResource(item.imageUrl),
contentDescription = null,
)
Text(
modifier = Modifier.padding(horizontal = 16.dp),
text = item.name
)
}
}
115