fluttercommunity / flutter-draggable-scrollbar

Draggable Scrollbar - A scrollbar that can be dragged for quickly navigation through a vertical list. Additional option is showing label next to scrollthumb with information about current item. Maintainer: @marica27
https://pub.dev/packages/draggable_scrollbar
MIT License
441 stars 77 forks source link

The position is reset when the scroll position of the listview is cached #18

Open rockingdice opened 5 years ago

rockingdice commented 5 years ago

I'm caching the ListView for page navigation(using a PageStorageKey). So that users won't have to scroll from the top each time. But I noticed the draggable scrollbar is reset when the page is navigated back. So I cannot drag the handler to the top (which is already in the top) when the list view is still in the middle. I think it should keep sync to the list view.

R0ya1Eag1e commented 4 years ago

same problem, any workaround?

neofactoris3 commented 4 years ago

+1

AlexF1983 commented 3 years ago

same problem, but works fine with the normal Scrollbar and RawScrollbar Widgets

and in my case only a problem in the datasearch objekt with Listview.builder and "itemBuilder: (context, index) => ListTile(...", it works fine on other positions in my app with Listview(...

workaround could be: putting a normal Listview over the Listview.builder can someone confirm or test, too? thx