Comments (3)
Closed, the issue was in another package: https://pub.dev/packages/overlay_support
from auto_route_library.
Hey @MartinAKovachev marking navigation as async should not have any effect because the method is not being awaited, the NavigatorResolver is.
what kind of strange behavior are you getting?
from auto_route_library.
Hey @MartinAKovachev marking navigation as async should not have any effect because the method is not being awaited, the NavigatorResolver is. what kind of strange behavior are you getting?
Hey @Milad-Akarie,
Ok, if using onNavigation
as async is correct, then something else should be the issue. I will keep you updated if we have other questions regarding that topic. The case is that we restart our app by using RestartWidget
in which we update the key
(so the rest of the tree will be updated) and it is a root widget above the MaterialApp
widget. But for some reason the onNavigation
is called 2 times with /
path when we restart the tree, but we see a white screen instead of /
main route. Seems like an old instance of router is being used, but still can't find the reason for happening.
If we immediately call resolver.next()
without awaiting anything before that, then it navigates to the /
main route (again onNavigation
is called 2 times but at least it works).
from auto_route_library.
Related Issues (20)
- Incorrect naming of routes
- Incorrect class reference in README documentation
- Hero animation not working on ShellRoutes? HOT 2
- AutoTabsRouter not updating url on nested sub-routes
- popUntilRoot without Visible Transitions HOT 2
- Issues with AutoRoute Navigation: Implementing Address Handles Similar to Instagram HOT 2
- Hello everyone, I have an issue with GlobalKey<NavigatorState> navigatorKey in auto_router. HOT 1
- Generating issue need to use import instead of part in the app_router.dart file
- [Bug] Allow generic type define on Page
- Remove Splash Screen HOT 1
- CustomRoutes disable slide transition of dismissing screen HOT 1
- Incorrect meta value returned when navigating with navigateNamed for Nested Routes HOT 6
- Issue in nested navigation back method HOT 15
- Failed to navigate to previous page on clicking back button of both device or appbar. HOT 1
- Dynamic Animation arguments.
- Inherited params not working HOT 1
- Nested navigation with AutoTabsRouter in Web Platform HOT 6
- Flutter analyze breaks when using context.router.pop HOT 5
- [Web] Redirection cannot be made with the web back button. HOT 3
- Error: Superclass has no getter named 'popDisposition' | The method 'PopScope' isn't defined for the class 'AutoRouteNavigatorState' HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto_route_library.