I want to create a list of three boxes arranged in a LazyColumn
. The height of the boxes should take up all the available space within the parent.
So if the parent has the height of 90dp and the bottom padding of the boxes is 5dp then the height of each box should automatically get calculated to be 25dp.
How to do this?
Note: I tried modifier.fillMaxHeight()
, which doesn't seem to work for LazyColumn
and modifier.fillParentMaxHeight(1/3f)
, which does not include space for padding