You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all this package is very handy and I use it in several projects, so I appreciate it.
My intention is to load 5 new documents each time user swipes the first 5 documents, so I have this attribute on my widget itemsPerPage: 5,. But my main goal is to restrict some users the maximum amount of documents they can load. Like in a query you would normally use in a FutureBuilder;
child: FutureBuilder<QuerySnapshot>(
future: FirebaseFirestore.instance
.collection('Upcoming')
.orderBy('ReleaseTimestamp')
.where('ReleaseTimestamp', isGreaterThan: Timestamp.now())
.limit(3) // This actually only loads 3 documents totally
.get(),
But when trying to do the exact same procedure with this package the limit method used in the query is ignored;
Any idea how can I limit the total queried documents while also using the pagination? Like I want some users to load max 100 documents but paginate these 100 documents 20 by 20.
The text was updated successfully, but these errors were encountered:
First of all this package is very handy and I use it in several projects, so I appreciate it.
My intention is to load 5 new documents each time user swipes the first 5 documents, so I have this attribute on my widget
itemsPerPage: 5,
. But my main goal is to restrict some users the maximum amount of documents they can load. Like in a query you would normally use in a FutureBuilder;But when trying to do the exact same procedure with this package the limit method used in the query is ignored;
Any idea how can I limit the total queried documents while also using the pagination? Like I want some users to load max 100 documents but paginate these 100 documents 20 by 20.
The text was updated successfully, but these errors were encountered: