techpro_carplay library
Build Apple CarPlay and Android Auto screens from Flutter with one Dart API.
Describe screens with CarListTemplate, CarGridTemplate, CarInfoTemplate and CarAlert, and show them with TechproCar.instance.
For tests, see package:techpro_carplay/testing.dart.
Classes
- CarAction
-
A button on a
CarInfoTemplateor aCarAlert. - CarAlert
- A short message on top of the current screen, with 1 to CarLimits.maxAlertActions buttons.
- CarAssetImage
- A CarImage loaded from the app's Flutter assets.
- CarConnection
- Whether a car display is connected, and which kind.
- CarGridItem
- One button of a CarGridTemplate.
- CarGridTemplate
- A screen with a grid of 1 to CarLimits.maxGridItems buttons.
- CarImage
- An image shown on the car screen, such as a list item icon or a grid button.
- CarInfoRow
-
A label and a value on a CarInfoTemplate, such as
Open/9:00. - CarInfoTemplate
- A details screen with 1 to CarLimits.maxInfoRows rows and up to CarLimits.maxInfoActions buttons.
- CarLimits
- Limits that hold on both CarPlay and Android Auto.
- CarListItem
- One row of a CarListTemplate.
- CarListSection
- A group of rows with an optional header.
- CarListTemplate
- A screen with a scrolling list of rows.
- CarMemoryImage
- A CarImage made from encoded image bytes.
- CarTemplate
- A screen shown on the car display.
- TechproCar
- Controls what the car display shows, on CarPlay and Android Auto.
Enums
- CarActionStyle
- How a CarAction button is drawn.
- CarPlatform
- The car system the phone is connected to.
Typedefs
-
CarCallback
= FutureOr<
void> Function() - Called when the driver taps something on the car screen.