Another blatant Horologist commercial, this time t...
# compose-wear
y
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/
๐Ÿ‘๐Ÿผ 1
๐Ÿ‘๐Ÿฝ 1
๐Ÿ‘ 4
Copy code
DatePicker(
    date = time.toLocalDate(),
    onDateConfirm = {
        time = time.toLocalTime().atDate(it)
        navController.popBackStack()
    }
)
All designed to follow your MaterialTheme
j
FYI I have the sample with the step through written
๐Ÿ‘ 1
๐Ÿ™Œ๐Ÿฝ 1
๐Ÿ‘๐Ÿผ 1
๐Ÿ™๐Ÿป 1
z
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
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.
โค๏ธ 1