Issue
I have a list view that its item may vary each time. I want to make auto scroll for it.
I tried this code
scrollController.animateTo(
scrollController.position.maxScrollExtent,
duration: Duration(seconds: 10),
curve: Curves.easeOut);
It works perfectly for small list view but when the list view items are 100 or more it start moving so fast.
I also tried to make the duration longer when the list view have more items but it mess up
Solution
The issue was caused from the animation itself not the duration.
I solved it by increasing the duration and setting
curve: Curves.linear
.
Answered By – Yahya
Answer Checked By – Willingham (FlutterFixes Volunteer)