CalendarCarousel<T extends EventInterface> constructor
CalendarCarousel<T extends EventInterface> ({
- Key? key,
- double viewportFraction = 1.0,
- TextStyle? prevDaysTextStyle,
- TextStyle? daysTextStyle,
- TextStyle? nextDaysTextStyle,
- Color prevMonthDayBorderColor = Colors.transparent,
- Color thisMonthDayBorderColor = Colors.transparent,
- Color nextMonthDayBorderColor = Colors.transparent,
- double dayPadding = 2.0,
- double height = double.infinity,
- double width = double.infinity,
- TextStyle? todayTextStyle,
- Color dayButtonColor = Colors.transparent,
- Color todayBorderColor = Colors.red,
- Color todayButtonColor = Colors.red,
- DateTime? selectedDateTime,
- DateTime? targetDateTime,
- TextStyle? selectedDayTextStyle,
- Color selectedDayBorderColor = Colors.green,
- Color selectedDayButtonColor = Colors.green,
- bool? daysHaveCircularBorder,
- bool disableDayPressed = false,
- dynamic onDayPressed()?,
- TextStyle? weekdayTextStyle = const TextStyle(),
- Color iconColor = Colors.blueAccent,
- TextStyle? headerTextStyle,
- String? headerText,
- TextStyle? weekendTextStyle,
- EventList<
T> ? markedDatesMap, - bool markedDateShowIcon = false,
- Color? markedDateIconBorderColor,
- int markedDateIconMaxShown = 2,
- double markedDateIconMargin = 5.0,
- double markedDateIconOffset = 5.0,
- MarkedDateIconBuilder<
T> ? markedDateIconBuilder, - bool? markedDateMoreShowTotal,
- Decoration? markedDateMoreCustomDecoration,
- OutlinedBorder? markedDateCustomShapeBorder,
- TextStyle? markedDateCustomTextStyle,
- TextStyle? markedDateMoreCustomTextStyle,
- Widget? markedDateWidget,
- MultipleMarkedDates? multipleMarkedDates,
- EdgeInsets headerMargin = const EdgeInsets.symmetric(vertical: 16.0),
- double childAspectRatio = 1.0,
- EdgeInsets weekDayMargin = const EdgeInsets.only(bottom: 4.0),
- EdgeInsets weekDayPadding = const EdgeInsets.all(0.0),
- Color weekDayBackgroundColor = Colors.transparent,
- WeekdayBuilder? customWeekDayBuilder,
- DayBuilder? customDayBuilder,
- bool showWeekDays = true,
- bool weekFormat = false,
- bool showHeader = true,
- bool showHeaderButton = true,
- Widget? leftButtonIcon,
- Widget? rightButtonIcon,
- ScrollPhysics? customGridViewPhysics,
- dynamic onCalendarChanged()?,
- String locale = "en",
- int? firstDayOfWeek,
- DateTime? minSelectedDate,
- DateTime? maxSelectedDate,
- TextStyle? inactiveDaysTextStyle,
- TextStyle? inactiveWeekendTextStyle,
- bool headerTitleTouchable = false,
- Function? onHeaderTitlePressed,
- Function? onLeftArrowPressed,
- Function? onRightArrowPressed,
- WeekdayFormat weekDayFormat = WeekdayFormat.short,
- bool staticSixWeekFormat = false,
- bool isScrollable = true,
- Axis scrollDirection = Axis.horizontal,
- bool showOnlyCurrentMonthDate = false,
- bool pageSnapping = false,
- OnDayLongPressed? onDayLongPressed,
- CrossAxisAlignment dayCrossAxisAlignment = CrossAxisAlignment.center,
- MainAxisAlignment dayMainAxisAlignment = MainAxisAlignment.center,
- bool showIconBehindDayText = false,
- ScrollPhysics pageScrollPhysics = const ScrollPhysics(),
- bool shouldShowTransform = true,
- int maxDot = 5,
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 = 2,
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(0.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,
this.maxDot = 5
}) : super(key: key);