ListView infinite list on adding/removing data from top/bottom
-
Hi
I'm trying to implement an infinite feed line in ListViewi keep active part of a chat in list by beginInsertRows/beginRemoveRows and adding/removing data from source, and it almost works - except it sticks to the bottom - if I scroll too fast
(when I scroll slowly - new data arrives and the scroll moves near the center and that's totally as expected, this way it's truly can be infinite)
If it's stuck at the bottom - even when new data is added, it stays at the bottom (which leaves no space for next try)
When I scroll to top - no problems and it works beautifully as expected
I am using:verticalLayoutDirection: ListView.BottomToTop
fine
fine
stuck and it's staying there even when new data keep going
Also i tried to handle this problem in: onRowsInserted
and did:messagesList.positionViewAtIndex(last, ListView.Visible)
But even if it partially can solve the problem - it appears as flickering and is weird visually
Is there any way how to keep Discord like behavior on ListVIew?
I found a similar problem but it seems dead now
Update: i found a temporary solution - just to keep some space and not drop completely to the bottom
But still look for a better wayUpdate: it's all wrong
Decided to move on Flutter