hi, im using lazyrow to display horizontal instagr...
# compose
r
hi, im using lazyrow to display horizontal instagram suggestions kind of list . And this is part of lazycolumn list item. When i use
IntrinsicSize.Min
its giving me
Intrinsic measurements are not currently supported by SubcomposeLayout
. description text vary from 1-2 lines how to maintain common height for all the row elements
Copy code
LazyRow(
        state = listState,
        modifier = modifier.height(IntrinsicSize.Min),
        horizontalArrangement = Arrangement.spacedBy(8.dp),
    )
b
Perhaps this thread can help. Maybe add a weight modifier on the description text to fill up all of the extra space https://kotlinlang.slack.com/archives/CJLTWPH7S/p1616781481239700?thread_ts=1616691690.169300&cid=CJLTWPH7S
a
I don't think
weight
will work because it'll make the parent fill max height (i.e. take all vertical space available). I think you have to specify a fixed height on the description text. You can use
with(LocalDensity.current) { 10.sp.toDp() }
to convert from sp to dp.