Time Picker Layout
data class TimePickerLayout(val periodWeight: Float?, val hourWeight: Float?, val minuteWeight: Float?, val columnOrder: ImmutableList<TimePickerColumn> = persistentListOf(
TimePickerColumn.PERIOD,
TimePickerColumn.HOUR,
TimePickerColumn.MINUTE
))
Represents layout options used by io.github.kezlab.compose.pickers.time.TimePicker columns.
Set a column weight to null to leave that column unweighted so pickerModifier can provide an explicit width.
Parameters
period Weight
The AM/PM column weight in 12-hour mode.
hour Weight
The hour column weight.
minute Weight
The minute column weight.
column Order
The visual column order. Must contain every TimePickerColumn exactly once. TimePickerColumn.PERIOD is still required in 24-hour mode, but its position is ignored.
See also
Constructors
Link copied to clipboard
constructor(periodWeight: Float?, hourWeight: Float?, minuteWeight: Float?, columnOrder: ImmutableList<TimePickerColumn> = persistentListOf(
TimePickerColumn.PERIOD,
TimePickerColumn.HOUR,
TimePickerColumn.MINUTE
))