Closed dipak-pd closed 3 weeks ago
Facing this same issue
I am also facing similar issue with AutoRoute.before it was working fine.
Facing the same issue, stuck for 2 days because of this. Please help.
I don't understand what's wrong with this package, I can't even navigate to any nested route.
Configuration
@AutoRouterConfig(replaceInRouteName: 'Screen,Route')
class AppRouter extends $AppRouter {
@override
List<AutoRoute> get routes => <AutoRoute>[
AutoRoute(
page: Dashboard.page,
path: '/dashboard',
initial: true,
children: [AutoRoute(page: ProjectRoute.page, path: 'project')])
];
}
Not able to navigate either push or pushNamed
context.router.push(ProjectRoute());
context.router.pushNamed('/dashboard/project');
Every time it's navigating to dashboard.
Same issue here.
Nested navigation seems to be broken to some extent. When I use the tabbar and try to push further, it just doesn't work (latest Flutter, latest version of auto_route, Flutter web).
@dipak-pd I fixed issues with nested navigation when I used AutoRouter(). You can read about this in docs for this package (nested navigation section).
@dipak-pd I fixed issues with nested navigation when I used AutoRouter(). You can read about this in docs for this package (nested navigation section).
@Mik77o Thanks, I'll try again
@dipak-pd is there an AutoRouter widget inside DashboardQGRoute.page ?
@dipak-pd is there an AutoRouter widget inside DashboardQGRoute.page ?
No, only flutter widgets are there inside DashboardQGRoute.page.
I also tried out with a new project, it doesn't even work there
You can check this : https://github.com/dipak-pd/auto-router-test
Facing same problem.
v.7.9.2
same problem
same problem as well
To render child routes you need a nested AutoRouter Widget ( an outlet ) please read the docs more carefully https://pub.dev/packages/auto_route#nested-navigation
Without further information, we are unable to resolve this issue. Please feel free to provide additional details or respond to any questions above, and we will be happy to reopen the case. Thank you for your contribution!
Getting error when trying to navigate to a nested route:
I/flutter ( 6896): Missing or invalid required parameter I/flutter ( 6896): Failed to parse [int] quotationId value from null I/flutter ( 6896): #0 Parameters.getInt (package:auto_route/src/common/parameters.dart:85:7) I/flutter ( 6896): #1 new $AppRouter.. (package:shilpkar/router/router.gr.dart:279:39)
I/flutter ( 6896): #2 RouteData.argsAs (package:auto_route/src/route/route_data.dart:101:22)
I/flutter ( 6896): #3 new $AppRouter. (package:shilpkar/router/router.gr.dart:277:30)
I/flutter ( 6896): #4 RootStackRouter._pageBuilder (package:auto_route/src/router/controller/root_stack_router.dart:161:20)
I/flutter ( 6896): #5 StackRouter._addEntry (package:auto_route/src/router/controller/routing_controller.dart:1570:29)
I/flutter ( 6896): #6 StackRouter._push (package:auto_route/src/router/controller/routing_controller.dart:1275:14)
I/flutter ( 6896):
This is route config
DashboardQG screen
RoomSelection Screen