flutter_carplay
1.7.1, released 7 weeks ago by oguzhanatalay.com
Build native Apple CarPlay and Android Auto interfaces from Flutter.
WASM-ready
What it does
Allows Flutter applications to render native Apple CarPlay and Android Auto UI templates using platform-specific models while sharing core app logic. It provides controllers, callbacks, and connection listeners for in-car displays.
AI-written summary of version 1.7.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to extend an existing Flutter application to support Apple CarPlay or Android Auto.
- You want to render native car platform templates from Dart instead of scaling the mobile UI.
Skip it when
- You are building a standalone Android Automotive OS application rather than an Android Auto projection app.
- You expect to render arbitrary custom Flutter widgets inside the car display instead of native platform templates.
Strengths
- Supports both Apple CarPlay and Android Auto from a single Flutter application.
- Binds to native car platform templates and callbacks.
- Includes support for navigation, images, incremental updates, and voice states.
Weaknesses
- Car hosts restrict template appearance and available controls based on app category and entitlements.
- Requires complex native setup including shared engine configurations on iOS.
Setup
- Kind
- Plugin (native code)
- Effort
- High
- Code generation
- No
- Direct dependencies
- 2
Requires iOS 14.0+ deployment target, custom shared-engine AppDelegate and SceneDelegate setup on iOS, and appropriate entitlements for CarPlay and Android Auto.
import 'package:flutter_carplay/flutter_carplay.dart';
final carplay = FlutterCarplay();
Future<void> prepareCarPlayHome() => FlutterCarplay.setRootTemplate(
rootTemplate: CPListTemplate(
title: 'My app',
sections: [
CPListSection(items: [
CPListItem(
text: 'Saved places',
detailText: 'Pick up where you left off',
onPress: (complete, item) async => complete(),
),
]),
],
),
);Works with
Packages commonly used together with flutter_carplay: ones it builds on, ones built on it, and its own family.