custom_date_range_picker library

Classes

CustomDateRangePicker
A custom date range picker widget that allows users to select a date range. const CustomDateRangePicker({ Key? key, this.initialStartDate, this.initialEndDate, required this.primaryColor, required this.backgroundColor, required this.onApplyClick, this.barrierDismissible = true, required this.minimumDate, required this.maximumDate, required this.onCancelClick, })
CustomDateRangePickerState

Functions

showCustomDateRangePicker(BuildContext context, {required bool dismissible, required DateTime minimumDate, required DateTime maximumDate, DateTime? startDate, DateTime? endDate, required dynamic onApplyClick(DateTime startDate, DateTime endDate), required dynamic onCancelClick(), required Color backgroundColor, required Color primaryColor, String? fontFamily}) → void
Displays a custom date range picker dialog box. context The context in which to show the dialog. dismissible A boolean value indicating whether the dialog can be dismissed by tapping outside of it. minimumDate A DateTime object representing the minimum allowable date that can be selected in the date range picker. maximumDate A DateTime object representing the maximum allowable date that can be selected in the date range picker. startDate A nullable DateTime object representing the initial start date of the date range selection. endDate A nullable DateTime object representing the initial end date of the date range selection. onApplyClick A function that takes two DateTime parameters representing the selected start and end dates, respectively, and is called when the user taps the "Apply" button. onCancelClick A function that is called when the user taps the "Cancel" button. backgroundColor The background color of the dialog. primaryColor The primary color of the dialog. fontFamily The font family to use for the text in the dialog.