Flutter: keep the scroll position when inserting new items into ListView
Typically, ListView would scroll up/down (depending on if it is reversed) when we insert a new item into the top of the list, like: The reason is that the ScrollPosition.maxScrollExtent and scroll offset of the ListViewscroll offset is changed due to the newly added item, while ScrollPosition.pixels is still unchanged…
Flutter: keep the scroll position when inserting new items into ListView Typically, ListView would scroll up/down (depending on if it is reversed) when we insert a new item into the top of the list, like: The reason is that the ScrollPosition.maxScrollExtent and scroll offset of the ListViewscroll offset is changed due to the newly added item, while ScrollPosition.pixels is still unchanged… flutter
Flutter keep scroll position inserting new item ListView Typically ListView would scroll updown depending reversed insert new item top list like reason ScrollPositionmaxScrollExtent scroll offset ListViewscroll offset changed due newly added item ScrollPositionpixels still unchanged… flutter