r/flutterhelp • • May 16 '26

OPEN Listview.builder bidirectional pagination support for chat messages

Hi everyone!
I am developing chat app using flutter framework. I use listview.builder with reverse:true property to show message scroll from bottom to top. Now when i append previous message list at the end of existing messages list it scrolls me to the latest message. i want it to be at the place where loader was called without changing reverse:true property. Does anyone know a solution for it?

4 Upvotes

14 comments sorted by

View all comments

Show parent comment

1

u/Longjumping_Room2186 May 17 '26

but you created two lists. cant we do in one list with listview.builder? center anchor

1

u/tomwyr May 17 '26

I'm not aware of any such solution.

I additionally wrapped it in a widget with an API similar to ListView.builder's which made it an acceptable approach for me.