Breadcrumb constructor

const Breadcrumb({
  1. Key? key,
  2. required List<Widget> children,
  3. Widget? separator,
  4. 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 (List
  • separator (Widget?, optional): custom separator between items
  • padding (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,
});