FCalendarHeaderStyle.inherit constructor
FCalendarHeaderStyle.inherit({
- required FColors colors,
- required FTypography typography,
- required FStyle style,
- required bool touch,
Creates a FCalendarHeaderStyle that inherits its properties.
Implementation
factory FCalendarHeaderStyle.inherit({
required FColors colors,
required FTypography typography,
required FStyle style,
required bool touch,
}) {
if (touch) {
return FCalendarHeaderStyle(
focusedOutlineStyle: style.focusedOutlineStyle,
buttonStyle: FButtonStyles.inherit(
colors: colors,
typography: typography,
style: style,
touch: touch,
).outline.md,
headerTextStyle: typography.md.copyWith(color: colors.foreground, fontWeight: .w500, height: 1),
headerIconSize: typography.md.fontSize!,
);
} else {
return FCalendarHeaderStyle(
focusedOutlineStyle: style.focusedOutlineStyle,
buttonStyle: FButtonStyles.inherit(
colors: colors,
typography: typography,
style: style,
touch: touch,
).outline.xs,
headerTextStyle: typography.sm.copyWith(color: colors.foreground, fontWeight: .w500),
headerIconSize: typography.md.fontSize!,
);
}
}