I have a problem with content size changes in a ModalBottomSheetLayout. If it is in expanded state (without filling the whole screen) and I add content to the sheet content, it seems to animate without me having animateContentSize() or AnimatedContent() anywhere. That's fine I guess, however the anchor of the animation isn't at the bottom. When adding the content, it pushes everything below it down instantly and then "fixes" it by animating everything up. When removing the content, it pushes everything below it up instantly and then animates down everything. It looks especially bad when removing content because you can briefly see an area without the sheet background below the sheet content.
I also cannot seem to get around it by adding slideInVertically and slideOutVertically animations to the content that changes. Am I missing something or is it an issue with ModalBottomSheetLayout?