FBreadcrumbStyle.inherit constructor
FBreadcrumbStyle.inherit({
- required FColors colors,
- required FTypography typography,
- required FStyle style,
Creates a FBreadcrumbStyle that inherits its properties.
Implementation
FBreadcrumbStyle.inherit({required FColors colors, required FTypography typography, required FStyle style})
: this(
textStyle: FWidgetStateMap({
// Selected
WidgetState.selected & (WidgetState.hovered | WidgetState.pressed): typography.sm.copyWith(
fontWeight: FontWeight.w400,
color: colors.foreground,
decoration: TextDecoration.underline,
),
WidgetState.selected: typography.sm.copyWith(fontWeight: FontWeight.w400, color: colors.foreground),
// Unselected
WidgetState.hovered | WidgetState.pressed: typography.sm.copyWith(
fontWeight: FontWeight.w400,
color: colors.primary,
decoration: TextDecoration.underline,
),
WidgetState.any: typography.sm.copyWith(fontWeight: FontWeight.w400, color: colors.mutedForeground),
}),
iconStyle: IconThemeData(color: colors.mutedForeground, size: 16),
tappableStyle: style.tappableStyle.copyWith(animationTween: FTappableAnimations.none),
focusedOutlineStyle: style.focusedOutlineStyle,
);