Tin Tran
BoxWithConstrain { val maxHeight = maxHeight Box( Modifier.heightIn(min = 0.dp, max = maxHeight * .8f) ) }
Albert Chang
Box( modifier = Modifier.layout { measurable, constraints -> val placeable = measurable.measure( constraints.copy(maxHeight = (constraints.maxHeight * 0.8f).roundToInt()) ) layout(placeable.width, placeable.height) { placeable.place(0, 0) } } )
A modern programming language that makes developers happier.