PublicTransportBriefRouteComposable
fun PublicTransportBriefRouteComposable(viewModel: PublicTransportBriefRouteViewModel, icons: PublicTransportRouteComposableIcons = PublicTransportRouteComposableDefaults.icons, colors: RouteCardColors = RouteCardColors.colors())
A brief summary card for a public transport route.
Displays route overview including total duration, arrival time, fare, transfer count, and a visual representation of the route segments. The card can be expanded to show departure schedule information.
The route line automatically adapts its layout based on available width:
Full mode: transport icons, route names, and walking durations
Collapsed mode: transport icons without route names
Minimal mode: icons only
Parameters
viewModel
Provides route data and handles user interactions.
icons
Custom icon resources for transport types and UI elements. Defaults to PublicTransportRouteComposableDefaults.icons.
colors
Color scheme for the card. Defaults to system-aware colors via RouteCardColors.colors.