AAGridTemplate class
A template that displays a grid of tappable cells on Android Auto.
Rendered as GridTemplate from the Car App Library. Android Auto
recommends a maximum of 8 buttons per grid.
When used as a tab inside an AATabBarTemplate, the tab label is taken from tabTitle (falling back to title). An optional tab icon can be provided via systemIcon or iconUrl.
- Implemented types
Constructors
-
AAGridTemplate({required String title, required List<
AAGridButton> buttons, List<String> ? emptyViewTitleVariants, String? tabTitle, String? systemIcon, String? iconUrl})
Properties
-
The grid cells. Android Auto recommends a maximum of 8 items.
final
-
emptyViewTitleVariants
→ List<
String> ? -
Messages displayed when buttons is empty.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconUrl → String?
-
URL of an image to use as the tab bar icon. Loaded asynchronously.
Takes precedence over systemIcon when both are set.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- systemIcon → String?
-
SF Symbol / icon name used to resolve a
CarIconfor the tab bar item. Common names such as "map", "house", "star" are mapped to Car App Library built-in icons. Unknown names fall back to a default.final - tabTitle → String?
-
Label displayed on the tab bar item when this template is used as a tab
inside an AATabBarTemplate. Falls back to title when not set.
final
- title → String
-
Title displayed in the header of the template.
final
- uniqueId → String
-
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited