Assigned
Status Update
Comments
co...@google.com <co...@google.com> #2
Tram, can you confirm that the behavior is correct if the modifier is moved to the composable inside the AnimatedPane?
ks...@gmail.com <ks...@gmail.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
Context: Creating a list/detail UI where the detail pane has a
NavHost
. Tapping an item in the list pane causes navigation within thatNavHost
, so theNavController
must be created outside theListDetailPaneScaffold
. A high-level sketch of this design would look something like this:However, when the detail pane is hidden,
AnimatedPane
will skip its content. On a configuration with only the list pane visible, tapping an item crashes because it tries to navigate on aNavController
that isn't attached to aNavHost
and thus has no graph.