Join Slack
Powered by
I see that alpha08 has introduced a snapToItem() m...
# compose
p
Philip Blandford
12/07/2020, 11:04 AM
I see that alpha08 has introduced a snapToItem() method in LazyListState - is there an example of its usage? It's a suspend function, and I'm not clear what sort of coroutine scope I should be using and where..
a
allan.conda
12/07/2020, 11:07 AM
use android code search when looking for usage of any new APIs
https://cs.android.com/androidx/platform/frameworks/support/+/androidx-master-dev:co[…]a/androidx/compose/foundation/demos/ListDemos.kt?q=snapToItem
p
Philip Blandford
12/07/2020, 11:08 AM
Ah, thanks - I shall do that in future
a
allan.conda
12/07/2020, 11:11 AM
and spread the word 😉 I discovered that relatively recently as well. I used to clone the android source before to find stuff like this
👍 3
Open in Slack
Previous
Next