I need to build a LazyRow with each item width be ...
# compose
m
I need to build a LazyRow with each item width be a percentage of the parent. Something like: ItemWidth = parentWidth/x. How can i get access to parentWidth and try to accomplish this? Any advice
t
Make the parent as
BoxWithConstraints
and use the width?
m
ya. thanks!
z
LazyItemScope also has the following!
Copy code
fun Modifier.fillParentMaxSize(
    /*@FloatRange(from = 0.0, to = 1.0)*/
    fraction: Float = 1f
): Modifier
👌 2