FCalendarYearMonthPickerStyle.inherit constructor
FCalendarYearMonthPickerStyle.inherit({
- required FColorScheme colorScheme,
- required FTypography typography,
Creates a new year/month picker style that inherits the color scheme and typography.
Implementation
FCalendarYearMonthPickerStyle.inherit({required FColorScheme colorScheme, required FTypography typography})
: this(
enabledStyle: FCalendarEntryStyle(
backgroundColor: colorScheme.background,
textStyle: typography.sm.copyWith(color: colorScheme.foreground, fontWeight: FontWeight.w500),
hoveredBackgroundColor: colorScheme.secondary,
focusedBorderColor: colorScheme.foreground,
radius: const Radius.circular(8),
),
disabledStyle: FCalendarEntryStyle(
backgroundColor: colorScheme.background,
textStyle: typography.sm
.copyWith(color: colorScheme.mutedForeground.withOpacity(0.5), fontWeight: FontWeight.w500),
focusedBorderColor: colorScheme.background,
radius: const Radius.circular(8),
),
);