Simen Sogard
08/19/2025, 2:08 PMSeri
08/19/2025, 3:23 PMFlowLayout 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 componentSeri
08/19/2025, 3:24 PMonPlacedModifier can get you those coordinates
https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/OnPlacedModifierSeri
08/19/2025, 4:00 PMContextualFlowRow is a deprecated layout which exposes lineIndex, but this layout is no longer maintained.
https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#ContextualFlowRow(kotli[…]erflow,kotlin.Function2)
https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/ContextualFlowRowScope#lineIndex()Simen Sogard
08/19/2025, 5:25 PMContextualFlowRow 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 tomorrowZach Klippenstein (he/him) [MOD]
08/19/2025, 8:33 PMContextualFlowRow was deprecated explain why and future plans.