iconSize property

AutoImageSize iconSize
getter/setter pair

Default display size for every CarPlay icon that does not set its own imageSize.

CarPlay reserves a fixed slot per icon whose size it exposes at runtime (CPListItem.maximumImageSize and friends). AutoImageSize expresses how much of that slot the artwork fills, so the result stays correct on any head unit.

FlutterCarplay.iconSize = const AutoImageSize.small();

Implementation

static AutoImageSize iconSize = const AutoImageSize.medium();