quire-io / scroll-to-index

scroll to index with fixed/variable row height inside Flutter scrollable widget
MIT License
518 stars 105 forks source link

Scroll Index Listener/Stream from AutoScrollController - Feature Request #55

Closed psk907 closed 3 years ago

psk907 commented 3 years ago

I am currently working on a page with a custom pinned TabBar and a SliverList (fixed count). This package helped me achieve scrolling on tap to widgets beyond the viewing boundary(and not rendered before), i.e anchored scrolling.

However I need a way to have my tab-bar scroll itself as I scroll through various AutoScrollTags, I was thinking that if the controller you provide had a broadcast stream of index changes / a listener or even a AutoScrollView that extends Flutter's built-in ScrollView's , then that would just be great !!

Thanks :)

jerrywell commented 3 years ago

you can implement this https://github.com/flutter/flutter/issues/19941#issuecomment-486950990 to get it.

psk907 commented 3 years ago

Yesss this worked, took me a while to understand it though.

Good workaround 👍🏽

Thanks !