brabo-hi
02/04/2022, 4:11 AMBoxWithConstraints {
Image(painter = painterResource(id = R.drawable.image), contentDescription = null)
}
how can i make the image width == parent's width
but the height to keep a constant ration as the original image?Colton Idle
02/04/2022, 4:41 AMColton Idle
02/04/2022, 4:41 AMAlbert Chang
02/04/2022, 4:50 AMcontentScale = ContentScale.FillWidth
.Colton Idle
02/04/2022, 5:20 AMAlbert Chang
02/04/2022, 5:20 AM