StylishTimePickerDialog

fun StylishTimePickerDialog(onDismissRequest: () -> Unit, confirmButton: @Composable () -> Unit, title: @Composable () -> Unit, modifier: Modifier = Modifier, properties: DialogProperties = DialogProperties(usePlatformDefaultWidth = false), modeToggleButton: @Composable () -> Unit? = null, dismissButton: @Composable () -> Unit? = null, shape: Shape = RoundedCornerShape(StylishTheme.dimensions.connectedCornerRadius), containerColor: Color = MaterialTheme.colorScheme.surfaceContainerHigh, content: @Composable ColumnScope.() -> Unit)

A dialog hosting a StylishTimePicker, styled with the Stylish design language.

This is the Finish-layer wrapper around the Material 3 TimePickerDialog under the ExperimentalMaterial3Api opt-in. The dialog surface uses a RoundedCornerShape with StylishTheme.dimensions.connectedCornerRadius and the theme's surfaceContainerHigh color; like the M3 dialog it applies platform window insets itself, so no additional inset handling is needed. The confirmButton, dismissButton, modeToggleButton, and title slots are forwarded unchanged.

Parameters

onDismissRequest

Called when the user dismisses the dialog by clicking outside or pressing back.

confirmButton

The button that confirms the selection, typically a TextButton.

title

The dialog title, typically a Text or a slot wrapping one.

modifier

Modifier applied to the dialog content.

properties

Platform-specific DialogProperties. Defaults to the M3 time-picker defaults (usePlatformDefaultWidth = false).

modeToggleButton

An optional toggle switching between clock and text input modes. When null, no toggle is shown.

dismissButton

The button that dismisses the dialog, typically a TextButton. When null, no dismiss button is shown.

shape

The dialog surface shape. Defaults to RoundedCornerShape with StylishTheme.dimensions.connectedCornerRadius.

containerColor

The dialog surface color. Defaults to MaterialTheme.colorScheme.surfaceContainerHigh.

content

The dialog body, typically a StylishTimePicker (or any TimePicker variant). Receives ColumnScope.

See also