Kwik Date Picker Dialog
fun KwikDatePickerDialog(title: String = "Select date", confirmText: String = "Confirm", cancelText: String = "Cancel", minSelectableDate: Long? = null, maxSelectableDate: Long? = null, onDateSelected: (LocalDate) -> Unit, showModeToggle: Boolean = false, confirmOnSelection: Boolean = true, colors: DatePickerColors = kwikDatePickerColors(), shape: Shape = MaterialTheme.shapes.medium, onDismiss: () -> Unit)
A date 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 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.
confirm On Selection
: Whether to confirm the selection on date selection.
colors
: The colors to use for the date picker.
on Dismiss
: Callback that is called when the dialog is dismissed.