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

Adding Click to Draggable Scrollbar #37

Open buzzicards opened 4 years ago

buzzicards commented 4 years ago

Hello,

Is there a way to add Tap gesture detector to this?

I want to reset the scrollbar to the position where the user will tap on scroll side.

Example if user clicks on the bottom of the scroll side and scrollbar is in the middle, it will automatically jump to the bottom.

Hoping that is possible.

shatanikmahanty commented 3 years ago

You can do this by using animate function and specifying offset on the scroll controller @buzzicards