Hi all, I am working with the TimePicker control, ...
# compose
m
Hi all, I am working with the TimePicker control, and uring my testing, i've noticed that the
is24Hour
flag on TimePickerState is not in fact stateful, despite it being a var in the interface:
Copy code
override var is24hour: Boolean = is24Hour

    override var selection by mutableStateOf(TimePickerSelectionMode.Hour)

    override var isAfternoon by mutableStateOf(initialHour >= 12)
Anyone know if this is an oversight, or is it by design? It's not a big deal for me as we've decided to just lock to the system time mode anyway and not make it available in the wrapper functions we're providing (we are wrapping it for styling and converting the state approach to callbacks)