CalendarCarousel<T extends EventInterface> constructor

const CalendarCarousel<T extends EventInterface>({
  1. Key? key,
  2. double viewportFraction = 1,
  3. TextStyle? prevDaysTextStyle,
  4. TextStyle? daysTextStyle,
  5. TextStyle? nextDaysTextStyle,
  6. Color prevMonthDayBorderColor = Colors.transparent,
  7. Color thisMonthDayBorderColor = Colors.transparent,
  8. Color nextMonthDayBorderColor = Colors.transparent,
  9. double dayPadding = 2,
  10. double height = double.infinity,
  11. double width = double.infinity,
  12. TextStyle? todayTextStyle,
  13. Color dayButtonColor = Colors.transparent,
  14. Color todayBorderColor = Colors.red,
  15. Color todayButtonColor = Colors.red,
  16. DateTime? selectedDateTime,
  17. DateTime? targetDateTime,
  18. TextStyle? selectedDayTextStyle,
  19. Color selectedDayBorderColor = Colors.green,
  20. Color selectedDayButtonColor = Colors.green,
  21. bool? daysHaveCircularBorder,
  22. BorderRadiusGeometry? daysBorderRadius,
  23. bool disableDayPressed = false,
  24. OnDayPressed<T>? onDayPressed,
  25. TextStyle? weekdayTextStyle = const TextStyle(),
  26. Color iconColor = Colors.blueAccent,
  27. TextStyle? headerTextStyle,
  28. String? headerText,
  29. TextStyle? weekendTextStyle,
  30. EventList<T>? markedDatesMap,
  31. bool markedDateShowIcon = false,
  32. Color? markedDateIconBorderColor,
  33. int markedDateIconMaxShown = 2,
  34. double markedDateIconMargin = 5,
  35. double markedDateIconOffset = 5,
  36. MarkedDateIconBuilder<T>? markedDateIconBuilder,
  37. bool? markedDateMoreShowTotal,
  38. Decoration? markedDateMoreCustomDecoration,
  39. OutlinedBorder? markedDateCustomShapeBorder,
  40. TextStyle? markedDateCustomTextStyle,
  41. TextStyle? markedDateMoreCustomTextStyle,
  42. Widget? markedDateWidget,
  43. MultipleMarkedDates? multipleMarkedDates,
  44. EdgeInsets headerMargin = const EdgeInsets.symmetric(vertical: 16),
  45. double childAspectRatio = 1,
  46. EdgeInsets weekDayMargin = const EdgeInsets.only(bottom: 4),
  47. EdgeInsets weekDayPadding = EdgeInsets.zero,
  48. Color weekDayBackgroundColor = Colors.transparent,
  49. WeekdayBuilder? customWeekDayBuilder,
  50. DayBuilder? customDayBuilder,
  51. bool showWeekDays = true,
  52. bool weekFormat = false,
  53. bool showHeader = true,
  54. bool showHeaderButton = true,
  55. Widget? leftButtonIcon,
  56. Widget? rightButtonIcon,
  57. ScrollPhysics? customGridViewPhysics,
  58. OnCalendarChanged? onCalendarChanged,
  59. String locale = 'en',
  60. int? firstDayOfWeek,
  61. DateTime? minSelectedDate,
  62. DateTime? maxSelectedDate,
  63. TextStyle? inactiveDaysTextStyle,
  64. TextStyle? inactiveWeekendTextStyle,
  65. bool headerTitleTouchable = false,
  66. VoidCallback? onHeaderTitlePressed,
  67. VoidCallback? onLeftArrowPressed,
  68. VoidCallback? onRightArrowPressed,
  69. WeekdayFormat weekDayFormat = WeekdayFormat.short,
  70. bool staticSixWeekFormat = false,
  71. bool isScrollable = true,
  72. Axis scrollDirection = Axis.horizontal,
  73. bool showOnlyCurrentMonthDate = false,
  74. bool pageSnapping = false,
  75. OnDayLongPressed? onDayLongPressed,
  76. CrossAxisAlignment dayCrossAxisAlignment = CrossAxisAlignment.center,
  77. MainAxisAlignment dayMainAxisAlignment = MainAxisAlignment.center,
  78. bool showIconBehindDayText = false,
  79. ScrollPhysics pageScrollPhysics = const ScrollPhysics(),
  80. bool shouldShowTransform = true,
  81. int maxDot = 5,
})

Implementation

const CalendarCarousel(
    {Key? key,
    this.viewportFraction = 1,
    this.prevDaysTextStyle,
    this.daysTextStyle,
    this.nextDaysTextStyle,
    this.prevMonthDayBorderColor = Colors.transparent,
    this.thisMonthDayBorderColor = Colors.transparent,
    this.nextMonthDayBorderColor = Colors.transparent,
    this.dayPadding = 2,
    this.height = double.infinity,
    this.width = double.infinity,
    this.todayTextStyle,
    this.dayButtonColor = Colors.transparent,
    this.todayBorderColor = Colors.red,
    this.todayButtonColor = Colors.red,
    this.selectedDateTime,
    this.targetDateTime,
    this.selectedDayTextStyle,
    this.selectedDayBorderColor = Colors.green,
    this.selectedDayButtonColor = Colors.green,
    this.daysHaveCircularBorder,
    this.daysBorderRadius,
    this.disableDayPressed = false,
    this.onDayPressed,
    this.weekdayTextStyle = const TextStyle(),
    this.iconColor = Colors.blueAccent,
    this.headerTextStyle,
    this.headerText,
    this.weekendTextStyle,
    this.markedDatesMap,
    this.markedDateShowIcon = false,
    this.markedDateIconBorderColor,
    this.markedDateIconMaxShown = 2,
    this.markedDateIconMargin = 5,
    this.markedDateIconOffset = 5,
    this.markedDateIconBuilder,
    this.markedDateMoreShowTotal,
    this.markedDateMoreCustomDecoration,
    this.markedDateCustomShapeBorder,
    this.markedDateCustomTextStyle,
    this.markedDateMoreCustomTextStyle,
    this.markedDateWidget,
    this.multipleMarkedDates,
    this.headerMargin = const EdgeInsets.symmetric(vertical: 16),
    this.childAspectRatio = 1,
    this.weekDayMargin = const EdgeInsets.only(bottom: 4),
    this.weekDayPadding = EdgeInsets.zero,
    this.weekDayBackgroundColor = Colors.transparent,
    this.customWeekDayBuilder,
    this.customDayBuilder,
    this.showWeekDays = true,
    this.weekFormat = false,
    this.showHeader = true,
    this.showHeaderButton = true,
    this.leftButtonIcon,
    this.rightButtonIcon,
    this.customGridViewPhysics,
    this.onCalendarChanged,
    this.locale = 'en',
    this.firstDayOfWeek,
    this.minSelectedDate,
    this.maxSelectedDate,
    this.inactiveDaysTextStyle,
    this.inactiveWeekendTextStyle,
    this.headerTitleTouchable = false,
    this.onHeaderTitlePressed,
    this.onLeftArrowPressed,
    this.onRightArrowPressed,
    this.weekDayFormat = WeekdayFormat.short,
    this.staticSixWeekFormat = false,
    this.isScrollable = true,
    this.scrollDirection = Axis.horizontal,
    this.showOnlyCurrentMonthDate = false,
    this.pageSnapping = false,
    this.onDayLongPressed,
    this.dayCrossAxisAlignment = CrossAxisAlignment.center,
    this.dayMainAxisAlignment = MainAxisAlignment.center,
    this.showIconBehindDayText = false,
    this.pageScrollPhysics = const ScrollPhysics(),
    this.shouldShowTransform = true,
    this.maxDot = 5})
    : super(key: key);