build method
Describes the part of the UI represented by this widget.
Implementation
@override
Widget build(BuildContext context) {
final theme = ThemeScope.of(context);
final activeStyle = _copyStyle(theme.labelMedium)
..foreground(theme.onSurface)
..bold();
final inactiveStyle = _copyStyle(theme.labelMedium)
..foreground(theme.muted);
return Row(
gap: gap,
children: [
for (var i = 0; i < items.length; i++) ...[
_crumb(items[i], i == items.length - 1, activeStyle, inactiveStyle),
if (i < items.length - 1) Text(separator, style: inactiveStyle),
],
],
);
}