Object

DateRangePickerDefaults

Contains default values used by the DateRangePicker.

Source set: Common
public object DateRangePickerDefaults

Contains default values used by the DateRangePicker.

Functions

DateRangePickerTitle

Source set: Common
@Composable
    public fun DateRangePickerTitle(
        displayMode: DisplayMode,
        modifier: Modifier = Modifier,
        contentColor: Color = DatePickerDefaults.colors().titleContentColor,
    )

A default date range picker title composable.

Parameters

displayMode the current DisplayMode
modifier a Modifier to be applied for the title
contentColor the content color of this title

DateRangePickerHeadline

Source set: Common
@Composable
    public fun DateRangePickerHeadline(
        @Suppress("AutoBoxing") selectedStartDateMillis: Long?,
        @Suppress("AutoBoxing") selectedEndDateMillis: Long?,
        displayMode: DisplayMode,
        dateFormatter: DatePickerFormatter,
        modifier: Modifier = Modifier,
        contentColor: Color = DatePickerDefaults.colors().headlineContentColor,
    )

A default date picker headline composable lambda that displays a default headline text when there is no date selection, and an actual date string when there is.

Parameters

selectedStartDateMillis a timestamp that represents the selected start date start of the day in UTC milliseconds from the epoch
selectedEndDateMillis a timestamp that represents the selected end date start of the day in UTC milliseconds from the epoch
displayMode the current DisplayMode
dateFormatter a DatePickerFormatter
modifier a Modifier to be applied for the headline
contentColor the content color of this headline
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: