Adib Faramarzi
02/15/2022, 11:19 AMitem
in a lazy column that fills the rest of the screen with its height? (.fillMaxHeight
does not work).Filip Wiesner
02/15/2022, 11:23 AMAdib Faramarzi
02/15/2022, 11:23 AMFilip Wiesner
02/15/2022, 11:25 AMThe height (the constrained height) is not infinite. That’s why the lazy column can recycleI see, you meant the constraint of the column. I was talking about constraint of the item.
Adib Faramarzi
02/15/2022, 11:31 AMFilip Wiesner
02/15/2022, 11:32 AMAdib Faramarzi
02/15/2022, 11:35 AMitem
itself.Filip Wiesner
02/15/2022, 11:38 AMLazyColumn
only conditionally. Otherwise use normal column and use weight(1f)
for the second elementAdib Faramarzi
02/15/2022, 11:38 AMFilip Wiesner
02/15/2022, 11:39 AMif (isEmpty) Column { ... } else LazyColumn { ... }
Adib Faramarzi
02/15/2022, 11:39 AMFilip Wiesner
02/15/2022, 11:42 AMZoltan Demant
02/15/2022, 12:22 PMModifier.fillparentMaxHeight(fraction = 1f - firstItemHeightFraction)
. That should fill the rest of the screen, I think; just make sure the list has Modifier.fillMaxSize
set so that youre actually getting its entire height in the calculation.Filip Wiesner
02/15/2022, 12:27 PMonGloballyPositioned()
. But that's your decision to make.Zoltan Demant
02/15/2022, 12:36 PMFilip Wiesner
02/15/2022, 12:38 PMAfzal Najam
02/15/2022, 4:22 PMSince this recomposes the top partDon’t think that’d be a problem but even if it is,
moveableContentOf
in the latest alpha should alleviate that.Adib Faramarzi
02/15/2022, 4:24 PMAndrey Kulikov
02/15/2022, 7:32 PM