LargeTopAppBarWithScaffold

fun LargeTopAppBarWithScaffold(title: String, onBackClicked: () -> Unit, actions: @Composable RowScope.() -> Unit = {}, floatingActionButton: @Composable () -> Unit? = null, snackbarHostState: SnackbarHostState = remember { SnackbarHostState() }, scrollBehavior: TopAppBarScrollBehavior = TopAppBarDefaults.exitUntilCollapsedScrollBehavior(), content: @Composable (PaddingValues) -> Unit)(source)

Provides a scaffold with a Material 3 large top app bar, back navigation, and optional actions.

State ownership:

  • Callers own the title text, navigation callback, top-bar actions, and body content.

  • Callers can provide snackbarHostState and scrollBehavior to integrate with screen-level state.

Behavior:

Usage note:

Parameters

title

Title rendered in the large top app bar.

onBackClicked

Callback invoked when the back button is pressed.

actions

Optional action-slot composables displayed on the top app bar.

floatingActionButton

Optional floating action button content for the scaffold.

snackbarHostState

Snackbar host state used by the scaffold.

scrollBehavior

Scroll behavior applied to the top app bar.

content

Main screen content receiving scaffold paddings.