Anyone have a good solution to the situation where...
# compose
n
Anyone have a good solution to the situation where you .
Copy code
.animateContentSize()
On something that is aligned bottom in a Box, where sizing animation happens before the placing leaving white space below the item during the content size animation ?
d
Do you have a mock showing what you'd idealy like to achieve?
The gap is from the larger content getting swapped immediately to smaller content (from the if-else statement), while animateContentSize is gradually animating the container that the content is in. Consider using
AnimatedContent
with
slideIntoContainer
to swap between the two sets of content.
n
@Doris Liu thanks Doris will check it out tmrw