Buddy whose helping me port an app to compose clai...
# compose
t
Buddy whose helping me port an app to compose claims there's no DateTime Picker for Compose. I looked briefly and did not prove him wrong. And on web searches only found people hacking the pre-compose one in. I looked in Accompanist and didn't see anything. Is it still the case that there is no "integrated" DatedPicker for Compose?
d
This is true. I was embedding the View based version via 'AndroidView` Composable. It's not really a hack but a migration utility for things that have not been fully migrated over to Compose yet. Fun fact I also did this with ViewPager too and it was very nice. My screen consisted of a Scaffold Composable who's content was an AndroidView Composable that hosted a ViewPager View in it.
Date Picker is not a trivial piece of kit.
s
The Crane sample app has some date imp in compose iirc. It's most likely far from being as complete as the view based one, but if you're really feeling adventurous and want to make your own thing maybe you can draw some inspiration there
j
You can simple do:
Copy code
AndroidView(...) {
  CalendarView() or TimePickerVIew()
}