flutter-draggable-scrollbar icon indicating copy to clipboard operation
flutter-draggable-scrollbar copied to clipboard

Reset thumb position

Open dovahkiin98 opened this issue 3 years ago • 1 comments

I have a ListView and a DraggableScrollbar with it.

The page has Search. So this scenario happens.

The user scrolls to the middle of the page, and searches for an item. The list is filtered, but the thumb is still at the middle. Even if the user resets the list, the thumb is still at the middle.

I tried controller.jumpTo but that didn't change the thumb position.

Is there a way to control the thumb? Change its position or at least reset it along with the ListView?

dovahkiin98 avatar Feb 23 '22 12:02 dovahkiin98

As it seems, the Thumb is changed depending on ScrollNotification, so it's not using the provided controller at all. Shouldn't it be using the ScrollController to listen to scroll changes?

dovahkiin98 avatar Feb 23 '22 12:02 dovahkiin98