CustomDateRangePicker constructor
const
CustomDateRangePicker({
- Key? key,
- DateTime? initialStartDate,
- DateTime? initialEndDate,
- Color primaryColor = const Color(0xFFF15A29),
- required Color backgroundColor,
- Color currentMonthDateColor = const Color(0xFF1F2937),
- Color rangeStripColor = const Color(0xFF3B82F6),
- required dynamic onApplyClick(),
- bool barrierDismissible = true,
- required DateTime minimumDate,
- required DateTime maximumDate,
- required dynamic onCancelClick(),
- String cancelButtonText = 'Cancel',
- String okButtonText = 'Ok',
- String title = 'Date Range',
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);