The breadcrumb is a secondary navigation pattern that helps a user understand the hierarchy among levels and navigate back through them.
A list of CBreadcrumbItem
to display in a row.
Type: List<CBreadcrumbItem>
Whether to omit the trailing slash for the breadcrumbs or not.
To truncate the breadcrumbs when children
length exceeds breadcrumbsLimit
.
The content of the breadcrumb item.
Called when the item is tapped.
Whether this breadcrumb item represents the current page or not.
CBreadcrumb(
breadcrumbsLimit: 4,
noTrailingSlash: false,
children: [
CBreadcrumbItem(child: CText(data: 'one'), onTap: () {}),
CBreadcrumbItem(child: CText(data: 'two'), onTap: () {}),
CBreadcrumbItem(child: CText(data: 'three'), onTap: () {}),
CBreadcrumbItem(
child: CText(data: 'four'),
isCurrentPage: true,
onTap: () {},
),
CBreadcrumbItem(child: CText(data: 'five'), onTap: () {}),
],
);