- Welcome
- Getting started
- Latest updates
- Monthly updates
- Foundations
-
Components
- Accordion
- Alert
- Alignment
- App Search Modal
- Aria live
- Autosuggest
- Badge
- Banner alert
- Bar chart
- Blockquote
- Bottom navigation
- Bottom sheet
- Breadcrumb
- Breakpoint
- Button
- Calendar
- Card
- Card list
- Card button
- Carousel
- Checkbox
- Chip
- Chip group
- Code
- Content cards
- Data Table
- Datepicker
- Description list
- Dialog
- Divider
- Drawer
- Field Set
- Flare
- Flat list
- Flight leg
- Floating action button
- Floating notification
- Form label
- Form validation
- Graphic promotion
- Horizontal navigation
- Icon
- Image
- Infinite scroll
- Info Banner
- Link
- List
- Map
- Mobile scroll container
- Modal
- Navigation bar
- Nudger
- Overlay
- Page indicator
- Pagination
- Panel
- Phone input
- Picker
- Popover
- Price
- Progress bar
- Radio button
- Rating
- Scrollable calendar
- Search Modal
- Section header
- Section list
- Select
- Skeleton
- Skip link
- Slider
- Snackbar
- Snippet
- Spinner
- Split input
- Star rating
- Switch
- Table
- Text
- Text input
- Theming
- Ticket
- Toast
- Tooltip
- Touchable native feedback
- Touchable overlay
- Content
- Accessibility
- Contributing
Flight leg
This component is for details of a flight journey from an origin to final destination.
FlightLeg
Default
Day | Night |
---|---|
![]() |
![]() |
Installation
Backpack Compose is available through Maven Central. Check the main Readme for a complete installation guide.
Usage
Example of a FlightLeg:
import net.skyscanner.backpack.compose.flightleg.BpkFlightLeg
BpkFlightLeg(
departureArrivalTime = "19:50 - 22:45",
description = buildAnnotatedString {
withStyle(
bpkAirportHighlightStyle()
) {
append("LHR")
}
append("-SIN, SwissAir")
},
stopsInfo = "2 Stops",
highlightStopsInfo = true,
duration = "7h 55m",
nextDayArrival = "+1",
operatedBy = "Operated by Ryanair",
warning = "Change airports in London",
contentDescription = null,
carrierLogoContent = {
BpkIcon(icon = BpkIcon.Aircraft, contentDescription = null)
},
)
Made with ❤️ by Skyscanner © 2023
© 2023 Skyscanner Backpack. Page last updated on Mar 31, 2023, 10:10