vedartm / paginate_firestore

A flutter package to simplify pagination with firestore data 🗃
https://pub.dev/packages/paginate_firestore
MIT License
113 stars 138 forks source link

The data rebuild twice so this make the read count from firebase double #160

Open saedfarashat opened 1 year ago

saedfarashat commented 1 year ago

on this code below iam trying to print the index

KrPaginateFirestore( includeMetadataChanges: true, query: firebaseFirestore .collection('collection') .orderBy('OrderBy1', descending: true) .orderBy('OrderBy2', descending: true), itemBuilder: (context, documentSnapshots, index) { print(index); }, shrinkWrap: true, itemBuilderType: PaginateBuilderType.listView, ),

the result is flutter: 0 flutter: 1 flutter: 2 flutter: 3 flutter: 4 flutter: 0 flutter: 1 flutter: 2 flutter: 3 flutter: 4

notic : i have only 5 items in collection