Skip to content

add dynamic update support for FCPInformationTemplate items and actions#1

Open
sINFdorako wants to merge 1 commit intomasterfrom
task/fcp-information-template-update
Open

add dynamic update support for FCPInformationTemplate items and actions#1
sINFdorako wants to merge 1 commit intomasterfrom
task/fcp-information-template-update

Conversation

@sINFdorako
Copy link
Copy Markdown
Collaborator

Summary

  • Adds updateInformationTemplateItems and updateInformationTemplateActions methods to
    dynamically update a displayed CPInformationTemplate, mirroring the existing
    updateListTemplateSections pattern for CPListTemplate.
  • Fixes a bug where FCPInformationTemplate._super was never assigned, which would have prevented
    any future native-side updates.

Changes

  • Swift: Added updateInformationItems/updateActions to FCPInformationTemplate, method
    channel handlers, scene delegate methods, and channel type constants
  • Dart: Added mutation methods on CPInformationTemplate and public API methods on
    FlutterCarplay

Usage

flutterCarplay.updateInformationTemplateItems(
  elementId: template.uniqueId,
  items: [CPInformationItem(title: 'ETA', detail: '5 min')],
);

flutterCarplay.updateInformationTemplateActions(
  elementId: template.uniqueId,
  actions: [CPTextButton(title: 'Cancel', onPress: () {})],
);

@sINFdorako sINFdorako force-pushed the task/fcp-information-template-update branch from 57262b5 to d02b2c2 Compare April 15, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant