NavigationDashboardComposable

fun NavigationDashboardComposable(viewModel: NavigationDashboardViewModel, bottomSheetState: CustomBottomSheetState, onBottomSheetVisibilityChanged: (CustomBottomSheetVisibility) -> Unit, addRoadEventButton: CustomizableDashboardButton = DashboardButtonAbsent, icons: NavigationDashboardComposableIcons = NavigationDashboardComposableDefaults.icons, colors: NavigationDashboardComposableColors = NavigationDashboardComposableDefaults.colors())

Displays the navigation dashboard UI as a bottom sheet.

The dashboard layout adapts to the screen orientation:

  • In portrait mode, it occupies the full width of the screen.

  • In landscape mode, it occupies half the screen width and is aligned to the left side.

When the bottom sheet is expanded, the background is faded. Clicking on the faded background (fader) automatically collapses the bottom sheet.

Parameters

viewModel

The state of of the NavigationDashboardComposable.

bottomSheetState

The state for managing the bottom sheet's expand/collapse behavior.

addRoadEventButton

A custom button to add road events.

icons

A set of customizable icons for the dashboard.

colors

The colors to apply for the visual representation.