Enabling fast scroll on flutter's Scrollbar?



Android provides this concept of fast scroll what is useful for large lists.

I’m doing a flutter app, with this piece of code:

body: Scrollbar(
    child: ListView(

On iOS and on mac it is possible to drag the scrollbar and achieve the same effect of fast scroll, but on android the scroll bar is just visual, I can’t interact with it to fast scrolling the list.

My question is: is it possible to enable the "fast scroll" on android?


In order to make Scrollbar work you have to set interactive: true. Please have a look below:

   thickness: 10,
   interactive: true,
   isAlwaysShown: true,
   controller: scrollController,

(thickness and isAlwaysShown modified to make it easier for testing)

Answered By – Paul

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More