Answers for "flutter Preserving Scroll Position"

2

disable scrollview flutter

physics = NeverScrollableScrollPhysics()
Posted by: Guest on May-14-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