Kwik Date Range Picker Dialog
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.
confirm Text
: The text for the confirm button.
cancel Text
: The text for the cancel button.
min Selectable Date
: The minimum selectable date in milliseconds since epoch. If null, 99 years before today is used.
max Selectable Date
: The maximum selectable date in milliseconds since epoch. If null, 99 years from today is used.
on Date Range Selected
: Callback that is called when a date range is selected. The Pair contains the start and end dates.
show Mode Toggle
: Whether to show the mode toggle button.
colors
: The colors to use for the date picker.
on Dismiss
: Callback that is called when the dialog is dismissed.
@see KwikDateRangeButton for a date field that shows this dialog when clicked.