Assigned
Status Update
Comments
ia...@google.com <ia...@google.com> #2
Tram, can you confirm that the behavior is correct if the modifier is moved to the composable inside the AnimatedPane?
co...@google.com <co...@google.com> #3
Hi Max, yes when the modifiers are moved to the composable inside the AnimatedPane, the PB animations are better than when the modifiers are in the AnimatedPane itself
Description
Using snapshot 11690605, ListDetailPaneScaffold and SupportingPaneScaffold have broken animations. It's difficult to describe the issues, so I'm attaching two videos:
"ldps 3 panes.mp4" shows a ListDetailPaneScaffold using all three panes. The list is red, the detail is green, and the extra is blue. The list has buttons to trigger
navigator.navigateTo
and all panes use an AnimatedPane as the root composable withModifier.background(someColor).safeContentPadding()
to color them. Animation scale is set to 5x."sps.mp4" shows a SupportingPaneScaffold with one pane showing at a time. A single button is in the main pane and the supporting pane just has a light purple background with text. Animation scale is set to 10x.
There are several different issues that I see:
Button
used in AnimatedPane takes up the full space it is given; if a Box is used instead of AnimatedPane, the Button just uses its intrinsic sizeI'm not sure if all of these are the same root issue or if this should be split up. Let me know if it's worth splitting this into multiple tickets or if I can provide more details.
Example code: