ShellTopAppBar
fun ShellTopAppBar(style: TopBarStyle, title: String, navigationIcon: @Composable () -> Unit, actions: @Composable RowScope.() -> Unit, scrollBehavior: TopAppBarScrollBehavior?, windowInsets: WindowInsets = topBarInsets(), search: TopBarSearch? = null, colors: TopAppBarColors? = null, titleModifier: Modifier = Modifier, article: ArticleTopBarHost? = null)(source)
Draws style. Draws nothing for TopBarStyle.Hidden.
Parameters
colors
The bar's colours; null keeps Material's, which tint the bar once content scrolls under it.
titleModifier
Applied to the title text of a small or centred bar, such as besideNavigationTitle(). A large bar draws its title twice and ignores it.
article
The host a screen declares an article bar into with ScaffoldArticleTopBar. While one is declared, the bar is drawn small, shows the article's compact title in place of title, and draws its reading progress over its bottom edge, keeping its height. A search field still takes the title's place, and a hidden bar stays hidden.