timePickerLayout

fun timePickerLayout(periodWeight: Float? = 1.0f, hourWeight: Float? = 1.0f, minuteWeight: Float? = 1.0f, columnOrder: List<TimePickerColumn> = listOf( TimePickerColumn.PERIOD, TimePickerColumn.HOUR, TimePickerColumn.MINUTE )): TimePickerLayout

Creates layout options for io.github.kezlab.compose.pickers.time.TimePicker columns.

Pass null for a column weight when io.github.kezlab.compose.pickers.time.TimePicker should use pickerModifier to define that column width instead of filling weighted row space.

Return

A TimePickerLayout instance with the specified column weights.

Parameters

periodWeight

The AM/PM column weight in 12-hour mode.

hourWeight

The hour column weight.

minuteWeight

The minute column weight.

columnOrder

The visual column order. Must contain every TimePickerColumn exactly once. TimePickerColumn.PERIOD is still required in 24-hour mode, but its position is ignored.