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.
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.