DatePicker
fun DatePicker(onDateConfirm: (LocalDate) -> Unit, modifier: Modifier = Modifier, date: LocalDate = LocalDate.now(), fromDate: LocalDate? = null, toDate: LocalDate? = null)
Full screen date picker with day, month, year.
This component is designed to take most/all of the screen and utilizes large fonts. In order to ensure that it will draw properly on smaller screens it does not take account of user font size overrides for MaterialTheme.typography.display2 which is used to display the main picker value.
Parameters
onDateConfirm
the button event handler.
modifier
the modifiers for the Box
containing the UI elements.
date
the initial value to seed the picker with.
fromDate
the minimum date to be selected in picker
toDate
the maximum date to be selected in picker