Thread
#compose-wear
    y

    yschimke

    4 months ago
    Another blatant Horologist commercial, this time thanks to @Steve Bower [G] and the Wear OS UX team - some high quality full screen date and time pickers. https://google.github.io/horologist/composables/
    DatePicker(
        date = time.toLocalDate(),
        onDateConfirm = {
            time = time.toLocalTime().atDate(it)
            navController.popBackStack()
        }
    )
    All designed to follow your MaterialTheme
    John Nichol

    John Nichol

    4 months ago
    FYI I have the sample with the step through written
    Zoltan Demant

    Zoltan Demant

    4 months ago
    Any chance that we could get a generic version of this? Im looking into implementing a picker similar to the hour/min one in the video above; in my case you would instead pick from weights, repetitions, etc. Edit for details: For my particular use-case, Id like to be able to specify the title (hour/min) and all the values as strings, with a callback to the selected index similar to
    onDateConfirm
    above. I can always build this myself, but similar to how Im leaning on the compose-material library, Id love to do the same here if possible!
    y

    yschimke

    4 months ago
    I believe @Sergio Sancho is working on this, but not sure when it will be available. Basically a PickerGroup, that does all the hard work of the 3 current pickers.