Skip to content

Date Picker

A Date Picker is a selection component that allows users to choose a specific date, or a range of dates, from a visual calendar interface. It helps reduce input errors and ensures consistent date formatting across the system.

Use a Date Picker when users need to select dates for scheduling, planning, or form submissions.

Common alternative names:
Calendar Picker, Date Selector, Calendar Input


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.