CalendarCarousel<T extends EventInterface> constructor

CalendarCarousel<T extends EventInterface>({
  1. Key? key,
  2. double viewportFraction = 1.0,
  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.0,
  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. bool disableDayPressed = false,
  23. dynamic onDayPressed(
    1. DateTime,
    2. List<T>
    )?,
  24. TextStyle? weekdayTextStyle = const TextStyle(),
  25. Color iconColor = Colors.blueAccent,
  26. TextStyle? headerTextStyle,
  27. String? headerText,
  28. TextStyle? weekendTextStyle,
  29. EventList<T>? markedDatesMap,
  30. bool markedDateShowIcon = false,
  31. Color? markedDateIconBorderColor,
  32. int markedDateIconMaxShown = 1,
  33. double markedDateIconMargin = 5.0,
  34. double markedDateIconOffset = 5.0,
  35. MarkedDateIconBuilder<T>? markedDateIconBuilder,
  36. bool? markedDateMoreShowTotal,
  37. Decoration? markedDateMoreCustomDecoration,
  38. ShapeBorder? markedDateCustomShapeBorder,
  39. TextStyle? markedDateCustomTextStyle,
  40. TextStyle? markedDateMoreCustomTextStyle,
  41. Widget? markedDateWidget,
  42. MultipleMarkedDates? multipleMarkedDates,
  43. EdgeInsets headerMargin = const EdgeInsets.symmetric(vertical: 16.0),
  44. double childAspectRatio = 1.0,
  45. EdgeInsets weekDayMargin = const EdgeInsets.only(bottom: 4.0),
  46. EdgeInsets weekDayPadding = const EdgeInsets.all(10.0),
  47. Color weekDayBackgroundColor = Colors.transparent,
  48. WeekdayBuilder? customWeekDayBuilder,
  49. DayBuilder? customDayBuilder,
  50. bool showWeekDays = true,
  51. bool weekFormat = false,
  52. bool showHeader = true,
  53. bool showHeaderButton = true,
  54. Widget? leftButtonIcon,
  55. Widget? rightButtonIcon,
  56. ScrollPhysics? customGridViewPhysics,
  57. dynamic onCalendarChanged(
    1. DateTime
    )?,
  58. String locale = "en",
  59. int? firstDayOfWeek,
  60. DateTime? minSelectedDate,
  61. DateTime? maxSelectedDate,
  62. TextStyle? inactiveDaysTextStyle,
  63. TextStyle? inactiveWeekendTextStyle,
  64. bool headerTitleTouchable = false,
  65. Function? onHeaderTitlePressed,
  66. Function? onLeftArrowPressed,
  67. Function? onRightArrowPressed,
  68. WeekdayFormat weekDayFormat = WeekdayFormat.short,
  69. bool staticSixWeekFormat = false,
  70. bool isScrollable = true,
  71. Axis scrollDirection = Axis.horizontal,
  72. bool showOnlyCurrentMonthDate = false,
  73. bool pageSnapping = false,
  74. OnDayLongPressed? onDayLongPressed,
  75. CrossAxisAlignment dayCrossAxisAlignment = CrossAxisAlignment.center,
  76. MainAxisAlignment dayMainAxisAlignment = MainAxisAlignment.center,
  77. bool showIconBehindDayText = false,
  78. ScrollPhysics pageScrollPhysics = const ScrollPhysics(),
  79. bool shouldShowTransform = true,
})

Implementation

CalendarCarousel({
  Key? key,
  this.viewportFraction = 1.0,
  this.prevDaysTextStyle,
  this.daysTextStyle,
  this.nextDaysTextStyle,
  this.prevMonthDayBorderColor = Colors.transparent,
  this.thisMonthDayBorderColor = Colors.transparent,
  this.nextMonthDayBorderColor = Colors.transparent,
  this.dayPadding = 2.0,
  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.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 = 1,
  this.markedDateIconMargin = 5.0,
  this.markedDateIconOffset = 5.0,
  this.markedDateIconBuilder,
  this.markedDateMoreShowTotal,
  this.markedDateMoreCustomDecoration,
  this.markedDateCustomShapeBorder,
  this.markedDateCustomTextStyle,
  this.markedDateMoreCustomTextStyle,
  this.markedDateWidget,
  this.multipleMarkedDates,
  this.headerMargin = const EdgeInsets.symmetric(vertical: 16.0),
  this.childAspectRatio = 1.0,
  this.weekDayMargin = const EdgeInsets.only(bottom: 4.0),
  this.weekDayPadding = const EdgeInsets.all(10.0),
  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,
}) : super(key: key);