DatePickerDefaults

object DatePickerDefaults


Contains the default values used by DatePicker

Summary

Public functions

DatePickerColors

Creates a DatePickerColors for a DatePicker.

DatePickerColors
@Composable
datePickerColors(
    activePickerContentColor: Color,
    inactivePickerContentColor: Color,
    invalidPickerContentColor: Color,
    pickerLabelColor: Color,
    nextButtonContentColor: Color,
    nextButtonContainerColor: Color,
    confirmButtonContentColor: Color,
    confirmButtonContainerColor: Color
)

Creates a DatePickerColors for a DatePicker.

Public properties

DatePickerType

The default DatePickerType for DatePicker aligns with the current system date format.

Public functions

datePickerColors

Added in 1.0.0-alpha31
@Composable
fun datePickerColors(): DatePickerColors

Creates a DatePickerColors for a DatePicker.

datePickerColors

@Composable
fun datePickerColors(
    activePickerContentColor: Color = Color.Unspecified,
    inactivePickerContentColor: Color = Color.Unspecified,
    invalidPickerContentColor: Color = Color.Unspecified,
    pickerLabelColor: Color = Color.Unspecified,
    nextButtonContentColor: Color = Color.Unspecified,
    nextButtonContainerColor: Color = Color.Unspecified,
    confirmButtonContentColor: Color = Color.Unspecified,
    confirmButtonContainerColor: Color = Color.Unspecified
): DatePickerColors

Creates a DatePickerColors for a DatePicker.

Parameters
activePickerContentColor: Color = Color.Unspecified

The content color of the currently active picker section.

inactivePickerContentColor: Color = Color.Unspecified

The content color of an inactive picker section.

invalidPickerContentColor: Color = Color.Unspecified

The content color of invalid picker options. Picker options can be invalid when minDate or maxDate are specified for the DatePicker.

pickerLabelColor: Color = Color.Unspecified

The color of the picker label.

nextButtonContentColor: Color = Color.Unspecified

The content color of the next button.

nextButtonContainerColor: Color = Color.Unspecified

The container color of the next button.

confirmButtonContentColor: Color = Color.Unspecified

The content color of the confirm button.

confirmButtonContainerColor: Color = Color.Unspecified

The container color of the confirm button.

Public properties

datePickerType

Added in 1.0.0-alpha31
val datePickerTypeDatePickerType

The default DatePickerType for DatePicker aligns with the current system date format.