Hi guys, I was trying to use the ScrollToTopButton...
# compose
n
Hi guys, I was trying to use the ScrollToTopButton composable but for some reason it is not showing in my dropdown menu on AS. Any ideas what I might be doing wrong?
c
Do you mean you deployed that Preview composable to device, and it’s not showing up in the Run Configuration dropdown on the main toolbar?
n
No, I was trying to follow this video:

https://www.youtube.com/watch?v=BhqPpUYJYeQ&t=159s

I tried adding it to my LazyColumn
But the option is not available
c
I believe that is a custom Composable he made for the demo in the video
n
Oh
lol, I see, I thought it was a ready-made one
Thanks!
c
Ha no worries - I can see why that’d be confusing 😉
😊 1
The important piece there is that you can call the
listState.scrollToItem(x)
with whatever clickable/actionable thing you want