Skip to content

Date Picker

A customizable calendar date picker component that provides a clean and consistent interface for date selection.

The DatePicker component offers various calendar formats, custom styling options, and date range restrictions. It handles different states including weekends, holidays, and disabled dates with appropriate visual feedback, making it versatile for various date selection needs across the application.


Standard calendar picker with header navigation and date selection.


Date picker displayed within a dialog modal for overlay presentation.


PropertyTypeDescription
onDaySelectedvoid Function(DateTime, DateTime)?Callback function triggered when a date is selected on the calendar.
headerVisibleboolControls whether the calendar header (month/year navigation) is visible.
calendarFormatCalendarFormatThe format of the calendar display (month, week, or 2-week view).
textStyleTextStyle?Default text style applied to calendar dates.
weekendTextStyleTextStyle?Text style specifically for weekend dates (Saturday and Sunday).
holidayTextStyleTextStyle?Text style specifically for holiday dates.
disabledColorColor?Color used for disabled dates that cannot be selected.
headerStyleHeaderStyle?Custom styling for the calendar header section.
daysOfWeekStyleDaysOfWeekStyle?Custom styling for the days of the week row (Mon, Tue, Wed, etc.).
calendarStyleCalendarStyle?Comprehensive styling options for the calendar body and date cells.
firstDayDateTime?The earliest date that can be selected on the calendar.
lastDayDateTime?The latest date that can be selected on the calendar.
focusedDayDateTime?The currently focused date, determining which month/year is displayed.
currentDayDateTime?The current date, typically highlighted with special styling.
daysOfWeekHeightdoubleHeight of the days of the week header row in pixels.