showCustomDateRangePicker function
void
showCustomDateRangePicker(})
showCustomDateRangePicker( BuildContext context, { required bool dismissible, required DateTime minimumDate, required DateTime maximumDate, DateTime? startDate, DateTime? endDate, required Function(DateTime startDate, DateTime endDate) onApplyClick, required Function() onCancelClick, Color? backgroundColor, Color? primaryColor, String? fontFamily, })
Implementation
void showCustomDateRangePicker(
BuildContext context, {
required bool dismissible,
required DateTime minimumDate,
required DateTime maximumDate,
DateTime? startDate,
DateTime? endDate,
required Function(DateTime startDate, DateTime endDate) onApplyClick,
required Function() onCancelClick,
// Color? backgroundColor,
// Color? primaryColor,
String? fontFamily,
}) {
FocusScope.of(context).requestFocus(FocusNode());
showDialog<dynamic>(
context: context,
builder: (BuildContext context) => CustomDateRangePicker(
barrierDismissible: true,
minimumDate: minimumDate,
maximumDate: maximumDate,
initialStartDate: startDate,
initialEndDate: endDate,
onApplyClick: onApplyClick,
onCancelClick: onCancelClick,
),
);
}