dimsuz
08/13/2021, 10:31 AMBox {
Image(contentScale = FillBounds, painter = painterResource(R.drawable.myPng))
Content() // can by of various height depending on the children
}
How do I make the image fill the same height as Content()
. Currently Image
gets only as big as its resource, ignoring FillBounds flagFilip Wiesner
08/13/2021, 10:33 AMModifier.matchParentSize()
on the image
Size the element to match the size of the Box after all other content elements have been measured
dimsuz
08/13/2021, 10:36 AM