Open saedfarashat opened 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
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