CPGridTemplate constructor
CPGridTemplate({
- required String title,
- required List<
CPGridButton> buttons, - String? tabTitle,
- bool showsTabBadge = false,
- String? systemIcon,
- VoidCallback? onPop,
- String? id,
Creates CPGridTemplate in order to display a grid of items as buttons. When creating the grid template, provide an array of CPGridButton objects. Each button must contain a title that is shown in the grid template's navigation bar.
Implementation
CPGridTemplate({
required this.title,
required this.buttons,
super.tabTitle,
super.showsTabBadge = false,
super.systemIcon,
super.onPop,
String? id,
}) : _elementId = id ?? const Uuid().v4();