ListDetailPaneScaffold

Composable Component

A Material opinionated implementation of ThreePaneScaffold that will display the provided three panes in a canonical list-detail layout.

Android
@ExperimentalMaterial3AdaptiveApi
@Composable
fun ListDetailPaneScaffold(
    listPane: @Composable ThreePaneScaffoldScope.() -> Unit,
    modifier: Modifier = Modifier,
    scaffoldState: ThreePaneScaffoldState = calculateListDetailPaneScaffoldState(),
    windowInsets: WindowInsets = ListDetailPaneScaffoldDefaults.windowInsets,
    extraPane: (@Composable ThreePaneScaffoldScope.() -> Unit)? = null,
    detailPane: @Composable ThreePaneScaffoldScope.() -> Unit
)

Parameters

listPanethe list pane of the scaffold. See ListDetailPaneScaffoldRole.List.
modifierModifier of the scaffold layout.
scaffoldStatethe state of the scaffold, which provides the current scaffold directive and scaffold value.
windowInsetswindow insets that the scaffold will respect.
extraPanethe list pane of the scaffold. See ListDetailPaneScaffoldRole.Extra.
detailPanethe list pane of the scaffold. See ListDetailPaneScaffoldRole.Detail.