horizontal_calendar_widget 1.0.2 icon indicating copy to clipboard operation
horizontal_calendar_widget: ^1.0.2 copied to clipboard

Easy to use, highly customizable horizontal calendar. Single or up to x days selection, with Internationalization support.

horizontal_calendar #

Build Status codecov SoluteLabs Twitter Follow

Easy to use, highly customizable horizontal calendar.

Features #

  • Custom date range (First & Last Date)
  • Single or up to x days selection
  • onDateSelected, onDateUnSelected, onDateLongTap, onMaxDateSelectionReached events.
  • Support custom ScrollController
  • Initial selected dates
  • Granular control to disable dates.
  • Internationalization support
  • Month / Date / Week Day label order customization
  • Month / Week day label hide / show
  • Custom TextStyles for Month, Date, WeekDay
  • Custom TextStyles for selected Month, selected Date, selected WeekDay
  • Customizable month format (e.g. MM,MMM)
  • Customizable date format (e.g. dd,d)
  • Customizable week day format (e.g. EE,EEE)
  • Default date cell Decoration
  • Selected date cell Decoration
  • Disabled date cell Decoration

Properties #

Property NameProperty TypeDescriptionDefault value
heightdoubleHeight of widget100
firstDateDateTimeFirst Date of calendar-
lastDateDateTimeLast Date of calendar-
minSelectedDateCountintCount of min selectable dates0
maxSelectedDateCountintCount of max selectable dates1
onDateSelectedFunction(DateTime dateTime)Callback when date is selected-
onDateLongTapFunction(DateTime dateTime)Callback when date cell is long pressed-
onDateUnSelectedFunction(DateTime dateTime)Callback when date is unselected-
onMaxDateSelectionReachedVoidCallbackCallback when max date selection count is reached-
initialSelectedDatesList<DateTime>List of initially selected datesEmpty List
isDateDisabledbool Function(DateTime dateTime)Function that returns bool to check if particular date is disabled-
labelOrderList<LabelType>Order of labels[ LabelType.month, LabelType.date, LabelType.weekday]
scrollControllerScrollControllerScroll Controller of horizontal list-
monthTextStyleTextStyleMonth label TextStyletitleTheme
selectedMonthTextStyleTextStyleSelected Month label TextStylemonthTextStyle
monthFormatStringFormat of monthMMM
dateTextStyleTextStyleDate label TextStylesubTitleTheme
selectedDateTextStyleTextStyleSelected Date label TextStyledateTextStyle
dateFormatStringFormat of datedd
weekDayTextStyleTextStyleWeek day label TextStylesubTitleTheme
selectedWeekDayTextStyleTextStyleSelected Week day label TextStyledateTextStyle
weekDayFormatStringFormat of week dayEEE
defaultDecorationDecorationDefault Decoration to be applied to date cell-
selectedDecorationDecorationDecoration to be applied to selected date cell-
disabledDecorationDecorationDecoration to be applied to disabled date cell-
spacingBetweenDatesdoubleSpacing between two cells of date8.0
paddingEdgeInsetsGeometryPadding to date cellEdgeInsets.all(8.0)

State Management in horizontal_calendar #

initialSelectedDates will only be taken when the widget built for the first time. horizontal_calendar will manage the Subsequent dates selection and un selection.

To get the initial control over the host app, one can pass the UniqueKey.


      key: UniqueKey(),

Issues and Feedback #

  • For any issue and feedback please create issue on Github repo.
pub points


verified publisher iconsolutelabs.com

Easy to use, highly customizable horizontal calendar. Single or up to x days selection, with Internationalization support.



Icon for licenses.MIT (LICENSE)


flutter, flutter_localizations, intl


Packages that depend on horizontal_calendar_widget