AsyncImage(
model = url,
contentDescription = null,
modifier = Modifier.fillMaxSize(),
contentScale = ContentScale.Crop
)
I would like to add width and height to the image url but I don't know how to do that. I tried .size parameter but it doesn't work. For Glide I used
.apply(RequestOptions()
.override(width, height)
.centerCrop())
but I don't know how to use it in coil.
You can use the Modifier parameter.