Fixed
Status Update
Comments
uo...@google.com <uo...@google.com>
uo...@google.com <uo...@google.com>
uo...@google.com <uo...@google.com>
uo...@google.com <uo...@google.com> #2
To enhance performance, we chose to avoid implementing an onItemLayout callback, which might trigger unnecessary recompositions.
As an alternative, please explore utilizing our newest features, ContextualFlowRow and ContextualFlowColumn.
These options offer you insights into various contextual information like lineIndex, indexInLine, and additional details including maxWidthInLine and maxHeight for every index call.
We believe this approach will assist in effectively styling components according to their placement. Your feedback would be greatly appreciated!
Description
Jetpack Compose component used: FlowRow and FlowColumn
Android Studio Build: Android Studio Flamingo 2022.2.1 Patch 1
Kotlin version: 1.8.21
I've playing with FlowRow and FlowColumn and currently there is not too much information about the FlowRow or FlowColumn. For example, in the case of FlowRow: how many rows are drawn, hoy many items are in each row, what position in the row has each element...
This kind of information I think will be very useful for the developer, because with that, we can manage each element based on their position.
For example, the first element of each row (or column) could have a different TextStyle, or the last element could have different background... We could do things like this.