I have a simple screen that is a Box that has a single button that is algined to the bottom. This works fine. Then I have a root application wrapper composable that has a BottomNavigation and when I navigate to this screen with the box, the bottom navigation should hide. The bottom navigation hides with a 2 second tween. When the tween completes the Screen with the Box jumps down because there is now more area in the screen.
I thought the solution was simple. Add
animateContentSize()
to the box, but it causes the entire screen to (seemingly) animate upwards. How can I make this Box screen with a bottom button smoother when it's parent expands vertically (i.e. bottomNavigation hides). Thanks!