CustomDateRangePicker constructor

const CustomDateRangePicker({
  1. Key? key,
  2. DateTime? initialStartDate,
  3. DateTime? initialEndDate,
  4. Color primaryColor = const Color(0xFFF15A29),
  5. required Color backgroundColor,
  6. Color currentMonthDateColor = const Color(0xFF1F2937),
  7. Color rangeStripColor = const Color(0xFF3B82F6),
  8. required dynamic onApplyClick(
    1. DateTime,
    2. DateTime
    ),
  9. bool barrierDismissible = true,
  10. required DateTime minimumDate,
  11. required DateTime maximumDate,
  12. required dynamic onCancelClick(),
  13. String cancelButtonText = 'Cancel',
  14. String okButtonText = 'Ok',
  15. String title = 'Date Range',
  16. DatePickerFooterButtonType footerButtonType = DatePickerFooterButtonType.filled,
})

Implementation

const CustomDateRangePicker({
  Key? key,
  this.initialStartDate,
  this.initialEndDate,
  this.primaryColor = const Color(0xFFF15A29),
  required this.backgroundColor,
  this.currentMonthDateColor = const Color(0xFF1F2937),
  this.rangeStripColor = const Color(0xFF3B82F6),
  required this.onApplyClick,
  this.barrierDismissible = true,
  required this.minimumDate,
  required this.maximumDate,
  required this.onCancelClick,
  this.cancelButtonText = 'Cancel',
  this.okButtonText = 'Ok',
  this.title = 'Date Range',
  this.footerButtonType = DatePickerFooterButtonType.filled,
}) : super(key: key);