Answers for "flutter scrollview set scroll row position"

2

flutter scrollable row

SingleChildScrollView(
  scrollDirection: Axis.horizontal,
  child: Row(
   children: <Widget>[
     Text('hi'),
     Text('hi'),
     Text('hi'),
   ]
  )
)
Posted by: Guest on January-07-2021
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

Code answers related to "flutter scrollview set scroll row position"

Browse Popular Code Answers by Language