Skip to content

Flutter FutureBuilder is keep firing even if im on a different page #22768

@shtengel

Description

@shtengel

Hi, i have a StatelessWidget with FutureBuilder.
when i leave the current page to the next by calling Navigator.of(context).push(..) the FutureBuilder is being called again, even if i continue to call Navigator.of(context).push(..) to the next page the FutureBuilder is fired again!
i used some printing in my StatlessWidget to discover that the Widget build method is not being called its only the FutureBuilder.builder function

i tried following the suggestion here #11426
but without success...

how do i fix it ?? thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions