pub struct NavigationScope<'a> { /* private fields */ }Expand description
A Navigation and its builder.
Implementations§
Sourcepub fn compact(self, compact: CompactNavigation) -> Self
pub fn compact(self, compact: CompactNavigation) -> Self
What the destinations become in a compact window.
Without it the design system answers, which is a bottom bar on most of them. An
application whose own reference draws a compact window differently says so here:
Sidebar puts the sidebar away behind a toggle on every design system, and None
leaves the destinations off a compact window so the screen can reach them its own
way. Medium and Expanded windows keep the design system’s rail and drawer whatever
this says, and the screen still never asks how wide the window is.
Sourcepub fn on_motion_finished(
self,
handler: impl FnMut(MotionFinished) + 'static,
) -> Self
pub fn on_motion_finished( self, handler: impl FnMut(MotionFinished) + 'static, ) -> Self
Runs once when this node’s size motion comes to rest, with the size it settled
at in dp. The node needs Modifier::motion for its size to move; without it
nothing is reported. A run interrupted by a newer size is not reported, only
the one that settles, and under reduced motion it arrives in the frame the
size changes in.