I\'m using onpressed() to scroll down to bottom of the List view, but i want to achieve that without Pressing the botton,
It must autoscroll for
When building your ListView or adding an item (not sure how you're doing it), use SchedulerBinding.instance.addPostFrameCallback
to change the scroll position on the next frame.
SchedulerBinding.instance.addPostFrameCallback((_) {
controller1.animateTo(
controller1.position.maxScrollExtent,
duration: const Duration(milliseconds: 10),
curve: Curves.easeOut,);
});
}