Skip to content

Refresh #1

@gazialankus

Description

@gazialankus

I really like the idea of InitBuilder, which saves us from writing code in initState.

However, how would one go about refreshing the data? For example, I load a list in InitBuilder's getter and user sees the list. User then does a pull to refresh. Normally, with a FutureBuilder I would reassign the future variable that was used. How can I achieve such a refresh with InitBuilder?

One idea that comes to mind is to provide a dummy arg that is increased in setState every time user refreshes. Would that work? Is there a better way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions