What is the best way to detect if a flowrow has ov...
# compose
s
What is the best way to detect if a flowrow has overflown to a new line? I have two elements, and i want to pass into the 2nd elements if it is on the first row of the flowRow, or if it has been pushed to the next row.
s
Since
FlowLayout
doesn't seem to expose
lineIndex
, I would suggest reading where each component is placed inside of the parent
FlowLayout
. Then, you can store the height coordinate of the first component and compare it to the height of every subsequent component
s
Yeah, i saw
ContextualFlowRow
and that it was deprecated, so i was hoping there was something else doing the same, but shame there isn't... Will try the onPlacedModifier stuff tomorrow
z
The release notes when
ContextualFlowRow
was deprecated explain why and future plans.