I have this component:
@Composable
fun CardHome(clickable:()->Unit,text:String,image: Any?){
Card(
modifier = Modifier
.fillMaxWidth()
.padding(15.dp)
.clickable { clickable() },
elevation = 10.dp
) {
Column(
modifier = Modifier.padding(10.dp)
) {
AsyncImage(model = image, contentDescription = "${UUID.randomUUID()}", alignment = Alignment.Center, contentScale = ContentScale.Inside)
Text(text = text, modifier = Modifier.fillMaxWidth().padding(5.dp),
style= TextStyle(color = Azul2, fontWeight = FontWeight.Bold, fontSize = 15.sp),
textAlign = TextAlign.Center)
}
}
}
But the sizes don't stay the same !! I want all cards of same width and height!!

