RouteEditorComposable

fun RouteEditorComposable(viewModel: RouteEditorViewModel, modifier: Modifier = Modifier, content: RouteEditorContent = DefaultRouteEditorContent, colors: RouteEditorComposableColors = RouteEditorComposableColors.colors(), textStyles: RouteEditorTextStyles = RouteEditorTextStyles.default, onCloseClick: () -> Unit = {}, settingsRepository: NavigationSettingsRepository? = null, onSettingsClick: () -> Unit? = null, settingsSectionVisibility: SectionVisibilityConfig = routeEditorSettingsVisibility())

Navigation bottom sheet content that matches the Figma design This is the content that goes inside the ThreeStateBottomSheet

Parameters

viewModel

The route editor view model

modifier

Modifier for the composable

content

The content configuration that defines how each part of the route editor is rendered.

colors

Color scheme for the route editor components

textStyles

Text styles for the route editor components

onCloseClick

Callback invoked when the close button is clicked. Works with the default route points display.

settingsRepository

Optional repository for navigation settings. When provided, a settings button is displayed and — if onSettingsClick is null — tapping it opens the built-in SettingsFlow overlay.

onSettingsClick

Optional callback for handling settings button clicks. When provided, the built-in settings flow is not opened — the callback is invoked instead. When null, the built-in settings flow opens if settingsRepository is available.

settingsSectionVisibility

Configuration controlling which settings sections are visible in the built-in settings flow. Has no effect when onSettingsClick is provided. Defaults to routeEditorSettingsVisibility which hides runtime navigation settings.