-
-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Labels
enhancementNew feature or requestNew feature or requestfirestore paginationOnly affects Firestore paginationOnly affects Firestore paginationrealtime-db paginationOnly affects Realtime Database paginationOnly affects Realtime Database pagination
Description
Is your feature request related to a problem? Please describe.
I am currently using the FirestorePagination plugin for a messaging app and encountered a scenario where I need to determine whether the current document being rendered is the last one in the list of loaded documents. This is particularly important for displaying certain UI elements differently for the last item and managing state transitions.
Describe the solution you'd like
Can you extend the itemBuilder with the parameter loadedDocumentCount.
So I can check if it's the last document which is loaded.
itemBuilder: (context, documentSnapshot, index, int loadedDocumentCount)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestfirestore paginationOnly affects Firestore paginationOnly affects Firestore paginationrealtime-db paginationOnly affects Realtime Database paginationOnly affects Realtime Database pagination