NavigationDefaults
data class NavigationDefaults(val tabTopBarStyle: TopBarStyle = TopBarStyle.Small, val childTopBarStyle: TopBarStyle = TopBarStyle.Small, val pageTopBarStyle: TopBarStyle = TopBarStyle.Large, val layoutPolicy: ShellLayoutPolicy = ShellLayoutPolicy())(source)
An app's own navigation defaults, used wherever a destination or the host declares none.
A destination's own topBar always wins over these, so a page registered with TopBarStyle.Hidden stays hidden whatever pageTopBarStyle says. The Toolkit's own pages declare no style, so they follow the app's. Only the developer options' top bar override replaces a destination's own style.
Constructors
Link copied to clipboard
constructor(tabTopBarStyle: TopBarStyle = TopBarStyle.Small, childTopBarStyle: TopBarStyle = TopBarStyle.Small, pageTopBarStyle: TopBarStyle = TopBarStyle.Large, layoutPolicy: ShellLayoutPolicy = ShellLayoutPolicy())