Sergey Y.
04/11/2025, 1:14 PManimateContentSize
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.Chrimaeon
04/11/2025, 1:19 PMweight
modifierSergey Y.
04/11/2025, 1:25 PMChrimaeon
04/11/2025, 1:29 PMZoltan Demant
04/11/2025, 2:04 PMSergey Y.
04/11/2025, 2:15 PMSergey Y.
04/11/2025, 2:15 PMSergey Y.
04/11/2025, 2:16 PMSergey Y.
04/11/2025, 2:18 PMColton Idle
04/15/2025, 2:31 PM