I am facing a lot of problems with the material3 ...
# compose-android
s
I am facing a lot of problems with the material3 DatePicker and DateRangePicker. I am seeing that there is just a lot of problems with spacing/padding. I've understood that this is because of the touch target asessibility size. But it still doesn't look good in devices with a smaller width than 360.dp. For example I went with the DislayMode.Input suggestion, it is okay for the DatePicker but now I am having issue with the DateRangePicker(even in full screen delay which was also suggested) where the endDate is sort of pushed to the center. Honestly atp, I would be fine with anything that just works. Please I would like to know, if anyone has faced the same situation with me. How did you come about this? or what alternative/other solution did you use? Are there some other libraries that could help as well? Thanks
👀 1
r
I understand your frustration. I ended up doing the whole thing myself, which allowed me to fully customize the UI + it even ran a bit better (even in release mode) than the native picker when you scrolled. You can check my take: https://github.com/oblakr24/KMPDatePicker Deployed as Compose WASM here: https://oblakr24.github.io/KMPDatePicker/ Not meant to be as a library, but the point is it's not that hard to do it yourself as soon as you find yourself wasting too much energy trying to make the official lib to conform to your usecase.
👍 1
👀 1
s
Okay thanks. I will look into that.