FCalendarHeaderStyle.inherit constructor
FCalendarHeaderStyle.inherit({
- required FColorScheme colorScheme,
- required FTypography typography,
- required FStyle style,
Creates a FCalendarHeaderStyle that inherits its values from the given colorScheme
and typography
.
Implementation
factory FCalendarHeaderStyle.inherit({
required FColorScheme colorScheme,
required FTypography typography,
required FStyle style,
}) {
final outline = FButtonStyles.inherit(colorScheme: colorScheme, typography: typography, style: style).outline;
return FCalendarHeaderStyle(
buttonStyle: outline.copyWith(
enabledBoxDecoration: outline.enabledBoxDecoration.copyWith(borderRadius: BorderRadius.circular(4)),
enabledHoverBoxDecoration: outline.enabledHoverBoxDecoration.copyWith(borderRadius: BorderRadius.circular(4)),
disabledBoxDecoration: outline.disabledBoxDecoration.copyWith(borderRadius: BorderRadius.circular(4)),
),
headerTextStyle: typography.base.copyWith(color: colorScheme.primary, fontWeight: FontWeight.w600),
enabledIconColor: colorScheme.mutedForeground,
disabledIconColor: colorScheme.disable(colorScheme.mutedForeground),
);
}