KwikDateRangePickerDialog

fun KwikDateRangePickerDialog(title: String = "Select date range", confirmText: String = "Confirm", cancelText: String = "Cancel", minSelectableDate: Long? = null, maxSelectableDate: Long? = null, onDateRangeSelected: (Pair<LocalDate, LocalDate>) -> Unit, showModeToggle: Boolean = false, colors: DatePickerColors = kwikDatePickerColors(), shape: Shape = MaterialTheme.shapes.medium, onDismiss: () -> Unit)

A date range picker dialog that allows the user to select a date range.

Parameters

title

: The title of the dialog.

confirmText

: The text for the confirm button.

cancelText

: The text for the cancel button.

minSelectableDate

: The minimum selectable date in milliseconds since epoch. If null, 99 years before today is used.

maxSelectableDate

: The maximum selectable date in milliseconds since epoch. If null, 99 years from today is used.

onDateRangeSelected

: Callback that is called when a date range is selected. The Pair contains the start and end dates.

showModeToggle

: Whether to show the mode toggle button.

colors

: The colors to use for the date picker.

onDismiss

: Callback that is called when the dialog is dismissed.