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.
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.