Breadcrumb constructor
const
Breadcrumb({
- Key? key,
- required List<
Widget> children, - Widget? separator,
- EdgeInsetsGeometry? padding,
Creates a Breadcrumb navigation trail.
The last child in the list is treated as the current location and is styled differently from the preceding navigation items.
Parameters:
children(Listseparator(Widget?, optional): custom separator between itemspadding(EdgeInsetsGeometry?, optional): padding around the breadcrumb
Example:
Breadcrumb(
separator: Icon(Icons.chevron_right),
children: [
TextButton(onPressed: goHome, child: Text('Home')),
TextButton(onPressed: goToCategory, child: Text('Category')),
Text('Current Page'),
],
)
Implementation
const Breadcrumb({
super.key,
required this.children,
this.separator,
this.padding,
});