date_picker_plus library

Classes

DatePicker
Displays a grid of days for a given month and allows the user to select a date.
DaysPicker
Displays a grid of days for a given month and allows the user to select a date.
MonthPicker
Displays a grid of months for a given year and allows the user to select a date.
RangeDatePicker
Displays a grid of days for a given month and allows the user to select a range of dates.
YearsPicker
Displays a grid of years which allows the user to select a date.

Enums

PickerType
Initial display of the picker.

Functions

showDatePickerDialog({required BuildContext context, required DateTime maxDate, required DateTime minDate, double? width, double? height, DateTime? initialDate, DateTime? currentDate, DateTime? selectedDate, EdgeInsets contentPadding = const EdgeInsets.all(16), EdgeInsets padding = const EdgeInsets.all(36), PickerType initialPickerType = PickerType.days, bool barrierDismissible = true, Color? barrierColor = Colors.black54, String? barrierLabel, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings? routeSettings, Offset? anchorPoint, TextStyle? daysOfTheWeekTextStyle, TextStyle? enabledCellsTextStyle, BoxDecoration enabledCellsDecoration = const BoxDecoration(), TextStyle? disabledCellsTextStyle, BoxDecoration disabledCellsDecoration = const BoxDecoration(), TextStyle? currentDateTextStyle, BoxDecoration? currentDateDecoration, TextStyle? selectedCellTextStyle, BoxDecoration? selectedCellDecoration, double? slidersSize, Color? slidersColor, TextStyle? leadingDateTextStyle, Color? highlightColor, Color? splashColor, double? splashRadius, bool centerLeadingDate = false, String? previousPageSemanticLabel, String? nextPageSemanticLabel}) Future<DateTime?>
Shows a dialog containing a Material Design date picker.
showRangePickerDialog({required BuildContext context, required DateTime maxDate, required DateTime minDate, double? width, double? height, DateTime? initialDate, DateTime? currentDate, DateTimeRange? selectedRange, EdgeInsets contentPadding = const EdgeInsets.all(16), EdgeInsets padding = const EdgeInsets.all(36), PickerType initialPickerType = PickerType.days, bool barrierDismissible = true, Color? barrierColor = Colors.black54, String? barrierLabel, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings? routeSettings, Offset? anchorPoint, TextStyle? daysOfTheWeekTextStyle, TextStyle? enabledCellsTextStyle, BoxDecoration enabledCellsDecoration = const BoxDecoration(), TextStyle? disabledCellsTextStyle, BoxDecoration disabledCellsDecoration = const BoxDecoration(), TextStyle? currentDateTextStyle, BoxDecoration? currentDateDecoration, TextStyle? selectedCellsTextStyle, BoxDecoration? selectedCellsDecoration, TextStyle? singleSelectedCellTextStyle, BoxDecoration? singleSelectedCellDecoration, double? slidersSize, Color? slidersColor, TextStyle? leadingDateTextStyle, Color? highlightColor, Color? splashColor, double? splashRadius, bool centerLeadingDate = false, String? previousPageSemanticLabel, String? nextPageSemanticLabel}) Future<DateTimeRange?>
Shows a dialog containing a Material Design range picker.