DatePickerDefaults

object DatePickerDefaults


Contains the default values used by DatePicker

Summary

Public functions

DatePickerColors

Creates a DatePickerColors for a DatePicker.

DatePickerColors
@Composable
datePickerColors(
    selectedPickerContentColor: Color,
    unselectedPickerContentColor: 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-alpha29
@Composable
fun datePickerColors(): DatePickerColors

Creates a DatePickerColors for a DatePicker.

datePickerColors

@Composable
fun datePickerColors(
    selectedPickerContentColor: Color = Color.Unspecified,
    unselectedPickerContentColor: 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
selectedPickerContentColor: Color = Color.Unspecified

The content color of selected picker.

unselectedPickerContentColor: Color = Color.Unspecified

The content color of unselected picker.

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-alpha29
val datePickerTypeDatePickerType

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