You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The function navigate declared in the file "modular_navigator.dart", is set as "void navigate(...)" but on it implementation function it works asynchronous, so I can't await this function finishes to executes to call my code.
I'm talking about the implementation in the file "modular_router_delegate.dart".
Environment
flutter_modular: ^6.3.4
To Reproduce
Here I want to first navigate to the root page "menus", then push a named route to open the specified menu.
void navigateToSubpage(String destination) async {
await Modular.to.navigate("/menus"); <-- Can't use await here because the way the function is declared
Modular.to.pushNamed(destination);
}
Expected behavior
That the function navigate could be awaited.
Screenshots
The text was updated successfully, but these errors were encountered:
Describe the bug
The function navigate declared in the file "modular_navigator.dart", is set as "void navigate(...)" but on it implementation function it works asynchronous, so I can't await this function finishes to executes to call my code.
I'm talking about the implementation in the file "modular_router_delegate.dart".
Environment
flutter_modular: ^6.3.4
To Reproduce
Here I want to first navigate to the root page "menus", then push a named route to open the specified menu.
Expected behavior
That the function navigate could be awaited.
Screenshots
The text was updated successfully, but these errors were encountered: