I have a problem with content size changes in a Mo...
# compose
v
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?
m
I'm having a similar issue, but I haven't spent too much time on finding the solution yet
d
Could you file a bug please, including a code snippet if available?
v
There already seems to be a post for this issue: https://issuetracker.google.com/issues/201628457 I added more information and a simple code snippet.
👍 1