Chat, I need your help, maybe I’m missing something. I thought a simple
animateContentSize
would be sufficient in this case.
Here’s the situation: I have a simple Row layout with a main content section and a details panel that slides in from the right. When the details panel appears or disappears, the main content should dynamically resize(shrink when the details show and grow back when they hide).
However, I can’t get this behavior to work out of the box.
I understand that I could implement a custom
Layout
with manual measuring and positioning to handle the animation, but I was hoping this would work with standard animation modifiers.
I also tried using
AnimatedVisibility
, but it didn’t help, it just causes the main content to jump instantly, and the details panel slides into the resulting gap.