svenjacobs
07/28/2022, 11:22 AMBox
(orange) containing an Image
with a specific aspect ratio and slight rotation (first box in attached image). Now I want to reduce the height of the Box
while the Image
behaves as if it still has the full height available (second box of attached image). If I’m using just height()
on the Box
, the Image
will be scaled. So basically I just want to show a specific “view port” of the Image
, like looking out a window. If I use drawWithContent()
in conjunction with clipRect()
on the Box
, I get the desired visual representation however the Box
still has the original height, which is not what I need. Any ideas?Albert Chang
07/28/2022, 11:24 AMModifier.height().wrapContentHeight(align = <http://Alignment.Top|Alignment.Top>)
svenjacobs
07/28/2022, 11:32 AMunbounded = true
since the content’s measured height is larger than the maximum height constraint 🎉svenjacobs
07/28/2022, 12:16 PMBox
now in a Column
with a Text
below, the Text
is displayed over the Box
🤔 Have to investigate further …