Date Picker
A calendar component that returns a date in unix ms.
DatePickerwill stretch its width as much as possible. Use.width(360.dp)to get the default look.- Consider adopting
kotlinx-datetimeto do calendar-related computations.
Date Picker Dialog
Example that shows a DatePicker in a Dialog.
Date Range Picker
A calendar component that returns a date range in unix ms.
DateRangePicker'sheight must be set as it is an scrollable column. Use.size(360.dp, 568.dp)to get the default look.- Use
.width(450.dp)or wider if you want the end date on a single line.
Date Range Picker Dialog
Example that shows a DateRangePicker in a Dialog.