🌈 Create new beautiful Compose Gradients with our new wesite ->
Object

TimePickerDialogDefaults

Default properties for a TimePickerDialog

Source set: Common
public object TimePickerDialogDefaults

Default properties for a TimePickerDialog

Properties

containerColor

Source set: Common
public val containerColor: Color

Container color for TimePickerDialog

shape

Source set: Common
public val shape: Shape

Shape for TimePickerDialog

vibrantContainerColor

Source set: Common
public val vibrantContainerColor: Color

Container color for a vibrant TimePickerDialog

vibrantShape

Source set: Common
public val vibrantShape: Shape

Shape for a vibrant TimePickerDialog

MinHeightForTimePicker

Source set: Common
public val MinHeightForTimePicker: Dp = 300.dp

Minimum screen height required to display a TimePicker in picker mode

Functions

DisplayModeToggle

Source set: Common
@Composable
    public fun DisplayModeToggle(
        onDisplayModeChange: () -> Unit,
        displayMode: TimePickerDisplayMode,
        modifier: Modifier = Modifier,
    )

A button that toggles the display mode of the time picker between TimePickerDisplayMode.Picker and TimePickerDisplayMode.Input.

Parameters

onDisplayModeChange called when the button is clicked
displayMode the current display mode of the time picker
modifier the Modifier to be applied to this button

ScrollDisplayModeToggle

Source set: Common
@Composable
    public fun ScrollDisplayModeToggle(
        onDisplayModeChange: () -> Unit,
        displayMode: TimePickerDisplayMode,
        modifier: Modifier = Modifier,
    )

A button that toggles the display mode of the time picker between TimePickerDisplayMode.Input and TimePickerDisplayMode.Scroll.

Parameters

onDisplayModeChange called when the button is clicked
displayMode the current display mode of the time picker
modifier the Modifier to be applied to this button

Title

Source set: Common
@Composable
    public fun Title(displayMode: TimePickerDisplayMode, modifier: Modifier = Modifier)

The title of the time picker dialog.

Parameters

modifier the Modifier to be applied to this title
displayMode the current display mode of the time picker

Content updated: