Programmatically scrolling to the end of a ListView

前端 未结 7 2047
既然无缘
既然无缘 2020-11-27 13:03

I have a scrollable ListView where the number of items can change dynamically. Whenever a new item is added to the end of the list, I would like to programmatic

7条回答
  •  春和景丽
    2020-11-27 13:43

    listViewScrollController.animateTo(listViewScrollController.position.maxScrollExtent) is the simplest way.

提交回复
热议问题