https://kotlinlang.org logo
Title
a

Andrei Mukamolau

02/13/2023, 10:56 AM
Hi! Currently pull to refresh modifier is added only for Compose Material, not for Material 3. I can’t quite find the info about this gesture in Material 3 spec, is it not supposed to be used in Material 3? If so, what is preferable way to refresh the list? I currently do automatic refresh on app open and force refresh on swipe, probably can add a button to the top bar for the force refresh
p

Pedro Alberto

02/13/2023, 10:59 AM
I think for this you can try the accopanist lib https://google.github.io/accompanist/swiperefresh/
but I haven't seen guideline on Material 3 about this true 😞
a

Andrei Mukamolau

02/13/2023, 11:35 AM
Accompanist library for swipe-to-refresh is deprecated now in favor of the modifier inside compose-material. I use it now, but it can be removed in the future
p

Pedro Alberto

02/13/2023, 1:21 PM
What is the modifier you are referring to?
p

Pedro Alberto

02/14/2023, 10:06 AM
hmmm interesting from the import I would have thought it's material 2 confusing
a

Andrei Mukamolau

02/14/2023, 10:07 AM
Yes, it’s Material 2
p

Pedro Alberto

02/14/2023, 10:07 AM
ha ok so for material 3 we don't have that I mean you can combine sure