Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
What happens is that even though the FlowRow/Col's contents get recomposed as expected, their placement is not updated.
The expected behavior is for the contents to be placed according to their index in the content, similar to Row/Column.
Jetpack Compose version: 1.7.6 (CMP 1.7.3)
Jetpack Compose component(s) used: FlexRow/FlexRow
Android Studio Build: IDEA ULTIMATE 2024.3.1.1
Kotlin version: 2.1.0
Code Sample to Reproduce:
```kotlin
var list: List<String> by remember {
val value = List(5) { it.toString() }.shuffled()
mutableStateOf(value)
}
LaunchedEffect(Unit) {
while (true) {
list = list.shuffled()
delay(1000)
}
}
FlowRow(Modifier.fillMaxSize()) {
list.forEach {
key(it) {
Text(it)
}
}
}
```
Stack trace (if applicable): N/A