https://kotlinlang.org logo
#compose
Title
# compose
r

Ruben Quadros

02/16/2023, 6:49 AM
Hi, how can I animate a row in lazycolumn when the content changes? The row gets recomposed as the items in lazy list are keyed and the key changes
s

Stylianos Gakis

02/16/2023, 9:05 AM
But is it the same item, only with slightly changed contents? In that case shouldn’t that mean that the key shouldn’t change at all? Therefore not recomposing unnecessarily? Or is it in cases where the content ID really changes, but it’s of the same
contentType
so you’d prefer the animations to play instead of jumping to the new state?
r

Ruben Quadros

02/16/2023, 1:08 PM
yes its of the second type -> content ID changes, but it’s of the same type. I want to animate this change
s

Stylianos Gakis

02/16/2023, 1:19 PM
Yeah, then if one of the existing issues don’t satisfy this situation, I’d file a new one with specifically this use case to see what kind of response you get and if as a first step at least this situation is being worked on or not.
3 Views