Looking into achieving `ItemAnimator`-esque animat...
# compose
t
Looking into achieving
ItemAnimator
-esque animations for additions/removals into a
LazyColumn/Row
: I see we have this example in the codebase that wraps each item around
AnimatedVisibility
. However, the example is rather simplistic in that the
visible
flag to
AnimatedVisibility
is computed via indices; the actual list backing the
LazyColumn
doesn’t mutate. In most app scenarios, lists mutate based on some source of truth (domain/business layer). Can
AnimatedVisibility
still be used in some capacity to animate mutating lists, or are there any other Compose constructs we can use?
c
There isn't yet item animation support in Compose (at least not the way RecyclerView provides). Here's the bug tracking this feature: https://issuetracker.google.com/150812265
👍🏼 1
I read somewhere that this will not be in 1.0
😔 1
t
Thanks for linking the issue.