NavScreen
A Nav3 destination key that also provides the destination's UI.
Each concrete implementation must be serializable to support saving and restoring the back stack. Navigation displays provide a ViewModelStore per entry, so ViewModels are scoped to this destination and cleared when its entry is removed. Keep only route data in the constructor; composable content and scaffold slots are provided by methods and are not part of the key.
Functions
Link copied to clipboard
Link copied to clipboard
Optional contextual content for an active selection. The scaffold chooses its placement.
Link copied to clipboard
Every screen explicitly declares its toolbar configuration. Return null when the screen has no toolbar; the scaffold keeps the shared toolbar and decides how to present changes.