Skip to content

[go_router] callback function for go_router. #107217

@ravipatel0508

Description

@ravipatel0508

In Navigator, we can use .then to call the function when the user returns to that screen.

There is no callback function in go_router.

For eg:

Navigator.push(context,MaterialPageRoute(builder: (context) => XyzScreen())).then((value) => _someFuncion());

There is no simple way to implement the above code using go_router.

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: duplicateIssue is closed as a duplicate of an existing issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions