ScrollableCleanCalendar constructor
const
ScrollableCleanCalendar({
- String locale = 'en',
- ScrollController? scrollController,
- bool showWeekdays = true,
- Layout? layout,
- double calendarCrossAxisSpacing = 4,
- double calendarMainAxisSpacing = 4,
- double spaceBetweenCalendars = 24,
- double spaceBetweenMonthAndCalendar = 24,
- EdgeInsets? padding,
- Widget monthBuilder(
- BuildContext context,
- String month
- Widget weekdayBuilder(
- BuildContext context,
- String weekday
- Widget dayBuilder(
- BuildContext context,
- DayValues values
- TextAlign? monthTextAlign,
- TextStyle? monthTextStyle,
- TextStyle? weekdayTextStyle,
- double? weekdayAspectRatio,
- Color? daySelectedBackgroundColor,
- Color? dayBackgroundColor,
- Color? daySelectedBackgroundColorBetween,
- Color? dayDisableBackgroundColor,
- Color? dayDisableColor,
- TextStyle? dayTextStyle,
- double? dayAspectRatio,
- double dayRadius = 6,
- required CleanCalendarController calendarController,
Implementation
const ScrollableCleanCalendar({
this.locale = 'en',
this.scrollController,
this.showWeekdays = true,
this.layout,
this.calendarCrossAxisSpacing = 4,
this.calendarMainAxisSpacing = 4,
this.spaceBetweenCalendars = 24,
this.spaceBetweenMonthAndCalendar = 24,
this.padding,
this.monthBuilder,
this.weekdayBuilder,
this.dayBuilder,
this.monthTextAlign,
this.monthTextStyle,
this.weekdayTextStyle,
this.weekdayAspectRatio,
this.daySelectedBackgroundColor,
this.dayBackgroundColor,
this.daySelectedBackgroundColorBetween,
this.dayDisableBackgroundColor,
this.dayDisableColor,
this.dayTextStyle,
this.dayAspectRatio,
this.dayRadius = 6,
required this.calendarController,
}) : assert(layout != null ||
(monthBuilder != null &&
weekdayBuilder != null &&
dayBuilder != null));