FCalendarStyle.inherit constructor
FCalendarStyle.inherit({
- required FColors colors,
- required FTypography typography,
- required FStyle style,
Creates a FCalendarStyle that inherits its properties.
Implementation
FCalendarStyle.inherit({required FColors colors, required FTypography typography, required FStyle style})
: this(
headerStyle: FCalendarHeaderStyle.inherit(colors: colors, typography: typography, style: style),
dayPickerStyle: FCalendarDayPickerStyle.inherit(colors: colors, typography: typography),
yearMonthPickerStyle: FCalendarEntryStyle(
backgroundColor: FWidgetStateMap({
(WidgetState.hovered | WidgetState.pressed) & ~WidgetState.disabled: colors.secondary,
WidgetState.any: colors.background,
}),
borderColor: FWidgetStateMap({
WidgetState.disabled: colors.background,
WidgetState.focused: colors.foreground,
}),
textStyle: FWidgetStateMap({
WidgetState.disabled: typography.base.copyWith(
color: colors.disable(colors.mutedForeground),
fontWeight: FontWeight.w500,
),
WidgetState.any: typography.base.copyWith(color: colors.foreground, fontWeight: FontWeight.w500),
}),
radius: const Radius.circular(8),
),
decoration: BoxDecoration(
borderRadius: style.borderRadius,
border: Border.all(color: colors.border),
color: colors.background,
),
);