is it the missing piece for Lazy Column/Row animations?
This is a more generic container that performs a
ContentTransform
when its content changes. More specifically it'll animate in the new content and animate out the previous content using customizable enter/exit transitions. What I'm particularly excited about is the support for a
SizeTransform
(also customizable) to automatically kick off a size animation when the content changes. Aside from these customization support, it is somewhat similar to
Crossfade
.
One concept employed in
AnimatedContent
that could be helpful for Lazy Column/Row animations is the ability to define enter/exit transitions for children at the parent level. Meanwhile, the children can access an
AnimatedVisibilityScope
to add any additional enter/exit animations (e.g. on color, corner radius, etc) local to that child.