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
442 stars 77 forks source link

How to hide the scroll thumb? #48

Open postpasspost opened 3 years ago

postpasspost commented 3 years ago

Is it possible to hide the scroll thumb if the list of items doesn't take an entire page? I tried creating a custom scroll indicator, and setting it to an empty container if the list of items is less than 20 items for example. But if I do that I can't show the labelTextBuilder or use DraggableScrollbar.arrows

I would also like to know how to hide the scroll indicator if the user is using pull-to-refresh.

(Current simple solution: list.length > 8 ? DraggableScrollbar(list) : list)

Other question: How can I reset the scroll indicator position?