Comments (3)
@natintosh not everything is supported for path navigation because a path can push one or multiple pages.
explain your use-case maybe I can suggest something?
from auto_route_library.
@natintosh not everything is supported for path navigation because a path can push one or multiple pages. explain your use-case maybe I can suggest something?
Okay so I'm working on a multi-module project with multiple teams working on a different module and each module has it own routes... then in the main app we are appending each module's routes during initialization.
class AppRouter extends RootStackRouter {
final List<AppRouteInfo> routesInfo;
AppRouter({this.routesInfo = const []}) : super();
@override
Map<String, PageFactory> get pagesMap =>
routesInfo.fold(<String, PageFactory>{}, (previousValue, element) {
return {...previousValue, ...element.pagesMap};
});
@override
List<AutoRoute> get routes => routesInfo
.fold(<AutoRoute>[], (prev, element) => [...prev, ...element.routes]);
}
Due to this, we are mostly using named routing to route between modules and there are some use cases whereby I would need to move on to another module and pop all stack until a page and push
for instance...
context.router.popUntilRouteWithName(RequirementsRoute.name);
context.router.push('/settings');
context.router.popUntil((route) => false);
context.router.replaceNamed('/dashboard');
from auto_route_library.
@natintosh not of that explains the need of using paths instead of route objects?
from auto_route_library.
Related Issues (20)
- Build Runner Efficiency Warning HOT 10
- Demo image in Nested navigation is not found (404) in Documentation HOT 2
- Feature request HOT 1
- revaluateListenable does not cause reevaluation for nested routes in AutoTabRouter tabs HOT 1
- Custom Route Navigation Overlapping Bottom Bar HOT 2
- Default global route transition HOT 2
- Custom Route Builder Example?
- When resizing the window, the interface is not re-rendered. HOT 2
- Route classes not generated HOT 1
- AutoRoute Helper not available with Android Studio Giraffe | 2022.3.1 Patch 2 HOT 6
- system "back" button close app in nested navigation HOT 4
- [Question] Shouldn't usesPathAsKey work in this case ? HOT 8
- AutoTabsRouter caches the pages. HOT 3
- Widget Inspector Error with Wildcard RedirectRoute HOT 2
- resolver.next(true) in Guard, on browser refresh pushes to initial route
- Route Arguments are always null inside AutoRouterObserver when using navigateNamed HOT 1
- AppBar back button disappears when pressing F5 on a web page
- Can't register AutoRoute v6 with GetIt HOT 2
- TabsRouter: updating `homeIndex` has no effect
- Testcases for Bottom Navigation Bar that uses AutoRouterScaffold HOT 2
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.