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
Limit items per page and know when is fetching more documents #3
Comments
There is an attribute PaginateFirestore(
itemBuilder: (context, documentSnapshot) => ListTile(
leading: CircleAvatar(child: Icon(Icons.person)),
title: Text(documentSnapshot.data['name']),
subtitle: Text(documentSnapshot.documentID),
),
// orderBy is compulsary to enable pagination
query: Firestore.instance.collection('users').orderBy('name'),
itemsPerPage: 10
), |
I am closing the issue now. If you face any related issue, feel free to reopen it. Thanks for using the package, hope it solved your use case. |
When "itemsPerPage" attribute is used, can the firestore "limit" method be used together? Thanks. |
|
Thanks |
Can we control the limit of items per page? if so, how?
How to know when is fetching more documents, like a bool variable, to show some CircularProgressIndicator with "loading more data" to the user?
The text was updated successfully, but these errors were encountered: