FCalendarHeaderStyle.inherit constructor

FCalendarHeaderStyle.inherit({
  1. required FColorScheme colorScheme,
  2. required FTypography typography,
  3. 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)),
      disabledBoxDecoration: outline.disabledBoxDecoration.copyWith(borderRadius: BorderRadius.circular(4)),
    ),
    headerTextStyle: typography.sm.copyWith(color: colorScheme.primary, fontWeight: FontWeight.w600),
    iconColor: colorScheme.mutedForeground,
  );
}