https://kotlinlang.org logo
Title
c

Colton Idle

02/14/2022, 5:08 PM
Is my googling and cs.android.com failing me? Is there no date/time picker in compose?
b

Big Chungus

02/14/2022, 5:14 PM
What for? Nobody is tracking time anymore since COVID hit. Therefore all time pickers were deprecated :trollface:
😄 9
m

Michael Paus

02/14/2022, 5:22 PM
Maybe this can answer your question. https://github.com/JetBrains/compose-jb/issues/1299
c

Chris Sinco [G]

02/14/2022, 5:28 PM
Yes, they didn’t make the v1 cut unfortunately. I’m not sure on timeline for them at the moment but will check with the team
c

Colton Idle

02/14/2022, 5:36 PM
Thanks. I saw a CL in gerrit and got excited, but it seems like it was only for Android wear. =(
c

Chris Sinco [G]

02/14/2022, 5:42 PM
In the meantime, we sorta built a simple one in the Crane sample if you want inspiration for building a custom one now: https://github.com/android/compose-samples/tree/main/Crane/app/src/main/java/androidx/compose/samples/crane/calendar
c

Colton Idle

02/14/2022, 6:13 PM
Yeah. I have a date picker already based off crane, was looking for a time picker though. (unless crane has a time picker too and i missed it?)
c

Chris Sinco [G]

02/14/2022, 6:18 PM
I don’t think it does 😞
Update from the team: it’s on their backlog and planned for the Compose Material3 beta release. When that is though is TBD but reasonably later this year.
c

Colton Idle

02/16/2022, 2:10 AM
Gotcha. Good to know ballparks at least. I'll go about building this myself.