Flutter : How to add scroll indicator in ListView
Thanks to Günter Zöchbauer.
You can wrap your ListView
in Scrollbar
Scrollbar(
child: ListView.builder(
itemCount: 50,
itemBuilder: (context, index) => ListTile(title: Text("Item= ${index + 1}"),),),
)
I think better to use CupertinoScrollbar
instead of Scrollbar
. CupertinoScrollbar
is can touch and scroll to the bottom..
Ex:
CupertinoScrollbar(
child: ListView.builder(...),
Or
Scrollbar(
child: ListView.builder(...),
You can implement this designer scrollbar library :
draggable_scrollbar
alphabet scrolling
OR
You can wrap ListView in Scrollbar
widget
Scrollbar(
child: ListView.builder(...),
)