Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paginationParams is gone ? #55

Closed
Abacaxi-Nelson opened this issue Oct 22, 2021 · 4 comments
Closed

paginationParams is gone ? #55

Abacaxi-Nelson opened this issue Oct 22, 2021 · 4 comments

Comments

@Abacaxi-Nelson
Copy link

Hello
Just update my dependecies

stream_chat_flutter: ^3.1.1
stream_chat_persistence: ^3.0.0

Capture d’écran 2021-10-22 à 12 43 43

Can you point how to handle pagination in new version ?

Thank you,

@xsahil03x
Copy link
Contributor

final controller = MessageSearchListController();

MessageSearchListView(
	...
	limit: 20,
	controller: controller,
)

controller.paginateData();

@Abacaxi-Nelson
Copy link
Author

oh okay you extract it from MessageSearchListView ?
So it should be handle by the UI now ?

@xsahil03x
Copy link
Contributor

xsahil03x commented Oct 22, 2021

yes, it will automatically paginate when you scroll the list.
If you want more control then you can pass an instance of your own controller.

@Abacaxi-Nelson
Copy link
Author

awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants