Skip to content

[Feature Request] get all snapshots from query #47

@opxdelwin

Description

@opxdelwin

Is your feature request related to a problem? Please describe.
It's noted that the itemBuilder returns the documentSnapshot of the document in the given index, which is being iterated on. I'd like to get the list of snapshots from the firebase query, which would help me group the snapshots as per requirements.

Describe the solution you'd like
I did see a variable items in the package codebase, which may be exposed, for specific use cases. It's common for such packages, even firestore official package to return all the snapshot documents. But we are exposing snapshot document at a specific index.

Maybe we can expose the variable in a new constructor and use it as an alternative to itemBuilder

Describe alternatives you've considered
If I'd want to implement this approach right now, I'll have to maintain a local list with all the snapshots, run query on the local list and build widgets using that.

Additional context
image

the callback function returning item at specific index, I'd like to get the entire items list exposed.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions