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

Make method to retrieve offset of widget public in AutoScrollController #43

Closed bejaeger closed 3 years ago

bejaeger commented 3 years ago

Hi,

first of all, thanks for providing this package, this saved me a lot of time. I'm using the AutoScrollController in a CustomScrollVIew. I would like to change the opacity of a widget dependent on the scroll position. Is it possible to retrieve the offset of a specific index tagged with AutoScrollTag so I don't have to calculate the position myself? It seems like this feature must be already implemented in the AutoScrollController and would just be needed to make public.

Thanks in advance. Benjamin!

jerrywell commented 3 years ago

you can refer to the thread and this comment: https://github.com/quire-io/scroll-to-index/issues/26#issuecomment-608998845