auto_route_library
auto_route_library copied to clipboard
Navigate Function causes clearing for path params
i have these routes
AutoRoute(path: '/dashboard', page: HomeRouteNavigation.page,children: [
AutoRoute(
path: 'vendors',
page: VendorsNavigationRoute.page,
children: [
AutoRoute(path: '', page: VendorsRoute.page),
AutoRoute(path: ':vendor-id', page: EditVendorRoute.page, children: [
AutoRoute(path:'branches',page: VendorBranchesRoute.page,children:[
AutoRoute(path:':branch-id',page: EditBranchRoute.page,children: [
AutoRoute(path: 'location',page: MapLocationSelectionRoute.page)
]),
AutoRoute(path: 'create', page: CreateBranchRoute.page,children: [
AutoRoute(path: 'location',page: MapLocationSelectionRoute.page)
]),
]),
]),
AutoRoute(path: 'create', page: CreateVendorRoute.page),
]),
and im trying to access vendor branches route for navigating to edit vendor route everything works fine
but when im trying to get the pathParam.inherit('vendor-id') after using appRouter.navigate(VendorBranchesRoute()) it shows me an error "Failed to parse [String] vendor-id value from null" and it also navigates me to "/dashboard/vendors/:vendor-id/branches" note that :vendor-id is not the actual id
it tried using appRouter.push .. but nothing different
Same here!