NavigationSplitView

@Composable
fun NavigationSplitView(state: NavigationSplitViewState, sidebar: @Composable () -> Unit, modifier: Modifier = Modifier, maxSidebarWidth: Double = 280.0, minSidebarWidth: Double = 180.0, sidebarWidthFraction: Double = 0.25, sidebarWidthUnit: LengthUnit = LengthUnit.SP, content: @Composable () -> Unit)

Creates a org.gnome.adw.NavigationSplitView that displays a sidebar and content side by side.

Parameters

state

A NavigationSplitViewState used to control the split view.

sidebar

A composable widget used as the sidebar. Needs to be a NavigationPage.

modifier

Compose Modifier for layout and styling.

maxSidebarWidth

The maximum width of the sidebar.

minSidebarWidth

The minimum width of the sidebar.

sidebarWidthFraction

The preferred sidebar width as a fraction of the total width.

sidebarWidthUnit

The length unit for minimum and maximum sidebar widths.

content

A composable widget used as the content. Needs to be a NavigationPage.