Skip to content

Tracking the Number of Loaded Documents in itemBuilder [Feature Request]  #45

@AignerMatthias

Description

@AignerMatthias

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

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions