superlistapp / super_sliver_list

Drop-in replacement for SliverList and ListView that can handle large amount of items with variable extents and reliably jump / animate to any item.
https://superlistapp.github.io/super_sliver_list/
MIT License
277 stars 15 forks source link

Is there a way to get which sticky header is currently active? #56

Open alterhuman opened 4 months ago

alterhuman commented 4 months ago

I have a calendar with an infinite list with one card for each date. Each date is a SliverStickyHeader that contains a header and a SuperSliverList with just 1 item.

I am able to scroll to specific SliverStickyHeader using animateTo whenever user selects a date on calendar, but I'm unable to figure out how to get a callback on which sticky header is current sticking/on-top for changing the date on calendar as the user scrolls.

knopp commented 3 months ago

I'm not sure what you're trying to do, but if you have large amount of SuperSliverList each of them only one item, the performance is not going to be good.