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

Zoltan Demant

11/16/2023, 5:05 AM
If I use
AnimatedContent
to transition from a small item to a large one; the large item will always "come in" from the start/left because of its bigger size. Is there a way to change this behavior without making the small item larger? Ideally Id just like to see the large content centered over the small one as it fades in (
contentAlignment=Center
does not seem to help).
Apparently all that I neeeded to do was set
sizeTransform
to null 👍🏽 TIL.