Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter Listview with scrollbar

Is there any way to put the scrollbar in a Listview?

enter image description here

like image 299
KKG Avatar asked Jan 26 '19 04:01

KKG


People also ask

How do you make a scrollable list in Flutter?

Just change Column widget to ListView widget — and that's all. Your container becomes scrollable.

How do I create a horizontal scrollable ListView in Flutter?

To scroll a Flutter ListView widget horizontally, set scrollDirection property of the ListView widget to Axis. horizontal. This arranges the items side by side horzontally. Following is the basic syntax to arrange the items horizontally in a ListView and scroll them horizontally.


1 Answers

Wrap your ListView inside ScrollBar widget

Scrollbar(
  child: ListView(),
)

More info: https://docs.flutter.io/flutter/material/Scrollbar-class.html

like image 191
diegoveloper Avatar answered Sep 21 '22 13:09

diegoveloper