Petals icon indicating copy to clipboard operation
Petals copied to clipboard

Change date and time pickers to material design

Open LeoColman opened this issue 3 years ago • 15 comments

We currently use https://github.com/vanpra/compose-material-dialogs But Material Design is offering the same component, but with more customization https://material.io/components/time-pickers/android#using-time-pickers

LeoColman avatar Aug 05 '22 22:08 LeoColman

Hi, I would like to work on this issue, can you assign me?

mkicina avatar Oct 07 '22 21:10 mkicina

Absolutely!

LeoColman avatar Oct 07 '22 21:10 LeoColman

Hi @mkicina ! Are you still working on this one?

LeoColman avatar Oct 27 '22 17:10 LeoColman

Hi @LeoColman, sorry for not reaching you sooner. I have other assignments in the past few weeks, but I will resolve this in the next one or two weeks. Hope it's okay.

mkicina avatar Oct 28 '22 15:10 mkicina

No problems at all! Take as long as you need. Just making sure you haven't forgotten :)

LeoColman avatar Oct 28 '22 16:10 LeoColman

Hi, I have problem build project after latest pull. I was given this error: Could not get resource 'https://plugins.gradle.org/m2/org/slf4j/slf4j-api/1.7.22/slf4j-api-1.7.22.pom'.

When I try to access that resource, I was given 403 error. Do you know where could be problem? Thanks :)

mkicina avatar Oct 30 '22 21:10 mkicina

Interesting. Does that happens when you just open the project in Android Studio after cloning?

LeoColman avatar Oct 31 '22 23:10 LeoColman

I actually dont know where was the real problem, but I have simillar issue with my othres Android projects. After restarting my notebook and rebuiding projects it works fine. I now can access that resource from browser, no 403 error. So sorry for any inconvenience :)

mkicina avatar Nov 01 '22 22:11 mkicina

Good old rebooting FTW!

LeoColman avatar Nov 01 '22 22:11 LeoColman

Hi @mkicina ! Do you think you'll manage to implement this? Do you need any help? Do you want me to unassign it from you and in the future you can come back to it?

LeoColman avatar Dec 06 '22 14:12 LeoColman

Hi @LeoColman ! I am actually working on it. In a week it should be ready, sorry for delay :)

mkicina avatar Dec 08 '22 06:12 mkicina

Don't worry, no delay at all!

It's just that sometimes people forget, so I ping them every now and then :) Take as much time as you need

LeoColman avatar Dec 08 '22 17:12 LeoColman

Hi @LeoColman!

Sorry to interrupt you, but I have this one thing I want to check with you.

If I understand it correctly, your app is using Jetpack Compose, and your suggested material components are not yet supported on Jetpack compose. https://m3.material.io/components/time-pickers/overview

Check Resources -> Implementation -> Jetpack Compose

I have some experience with Android and Kotlin, but not yet with Jetpack Compose, so can you please make it clear for me if it is possible?

mkicina avatar Dec 11 '22 17:12 mkicina

I suppose we can use the ones from https://github.com/material-components/material-components-android/blob/master/docs/components/TimePicker.md

This is "the old library". It's not supported in compose yet, but I think we can deal with it by using AndroidView

https://developer.android.com/jetpack/compose/interop/interop-apis

LeoColman avatar Dec 11 '22 21:12 LeoColman

I don't think I can manage to resolve this issue now, because it is not supported yet on compose. Do you think that I can resolve simillar issue about date and time pickers? It is this issue: https://github.com/LeoColman/Petals/issues/67

You can assign it to me and then tell me more about what customization are you expecting.

mkicina avatar Dec 13 '22 10:12 mkicina

Replaced by #601

LeoColman avatar Jun 06 '24 01:06 LeoColman