ScrollableCleanCalendar constructor

const ScrollableCleanCalendar({
  1. String locale = 'en',
  2. ScrollController? scrollController,
  3. bool showWeekdays = true,
  4. Layout? layout,
  5. double calendarCrossAxisSpacing = 4,
  6. double calendarMainAxisSpacing = 4,
  7. double spaceBetweenCalendars = 24,
  8. double spaceBetweenMonthAndCalendar = 24,
  9. EdgeInsets? padding,
  10. Widget monthBuilder(
    1. BuildContext context,
    2. String month
    )?,
  11. Widget weekdayBuilder(
    1. BuildContext context,
    2. String weekday
    )?,
  12. Widget dayBuilder(
    1. BuildContext context,
    2. DayValues values
    )?,
  13. TextAlign? monthTextAlign,
  14. TextStyle? monthTextStyle,
  15. TextStyle? weekdayTextStyle,
  16. double? weekdayAspectRatio,
  17. Color? daySelectedBackgroundColor,
  18. Color? dayBackgroundColor,
  19. Color? daySelectedBackgroundColorBetween,
  20. Color? dayDisableBackgroundColor,
  21. Color? dayDisableColor,
  22. TextStyle? dayTextStyle,
  23. double? dayAspectRatio,
  24. double dayRadius = 6,
  25. 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));