Skip to content

add route name to navigateHistory when use Modular.to.push #746

@markvu94

Description

@markvu94

Hi, how to add new route path to Modular.to.navigateHistory when using Modular.to.push?

For example, when I use:
Modular.to.push(MaterialPageRoute(settings: RouteSettings(name: "/topUp"), builder: (context) => TopupPage()))

it can navigate to TopUpPage but doesn't add '/topUp' to navigateHistory, therefore I cannot popUntil to this page later.
I don't want to use pushNamed because my app has many screens already with this push style.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestnewNew issue request attention

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions