Feature Request P2
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?
jd...@google.com <jd...@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
va...@google.com <va...@google.com> #5
After some investigation, I can conclude this behavior is consistent with other animation "wrapper" composables, e.g. AnimatedVisibility
. Modifiers should indeed be applied to the children in order to properly participate in the animation.
Description
WindowWidthSizeClass
.For
Compact
, a search bar is shown on the top app bar (see attached screenshot), and forExpanded
mode, the top app bar contains both a search bar and tabs to toggle between "Library" and "Discover".However, depending on the screen, the pane's width might be too small resulting in the search bar being squished. The screenshot attached shows the UI rendered on a medium tablet (pane width just fine) and a pixel fold (pane too narrow). In both of these devices, the
WindowWidthSizeClass
isExpanded
and the pane scaffold (SupportingPaneScaffold
in this case) does not provide sizing information so that I can show theCompact
UI when the main pane is to narrow.A possible solution here is to provide panel-level sizing information so that its contents can further be customized.