Answers for "scrollable list in flutter"

2

disable scroll in listview flutter

ListView.builder(
physics: ClampingScrollPhysics(), // <----
// ...
Posted by: Guest on October-22-2020
1

how to scroll to a position in flutter listview

ItemScrollController _scrollController = ItemScrollController();

ScrollablePositionedList.builder(
  itemScrollController: _scrollController,
  itemCount: _myList.length,
  itemBuilder: (context, index) {
    return _myList[index];
  },
)

_scrollController.scrollTo(index: 150, duration: Duration(seconds: 1));
Posted by: Guest on August-01-2020

Browse Popular Code Answers by Language