I am using ListView with RawScrollbar, and it is working fine. I can scroll the listview with scroll bar drag.
I want to scroll listview in both ways either through scrollbar drag or listview swipe gesture. But currently I am unable to scroll listview with swipe gesture.
RawScrollbar(
thumbColor: Colors.grey[200],
isAlwaysShown: true,
controller: controller,
thickness: 17,
radius: const Radius.circular(20),
child: ListView.separated(
scrollDirection: Axis.horizontal,
shrinkWrap: true,
controller: controller,
padding: EdgeInsets.only(left: 5, right: 5, bottom: 20),
itemBuilder: (context, index) {
return Container();
},
),
);
This is my code. Anyone help me please with this little issue.
Thanks in advance