-
-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
homeIndex
for AutoTabsRouter does not work
#1617
Comments
I misunderstood homeIndex with activeIndex. so I close this issue. |
@mhbdev Yup this is common, did you figure out how to set initial tab dynamically? |
Yes, I tried to setActiveIndex after the first build, but no I have no idea how to this dynamically. |
@mhbdev You need to think about tab routes as nested routes, how do you set an initial nested r route? you do it when navigating to the parent /parent/target child. routerConfig: _rootRouter.config(
deepLinkBuilder: (deepLink){
/// You don't want to override deep-links so
/// check if the there's no deep link first
if(deepLink.path == DeepLink.defaultPath){
return DeepLink(TabHostRoute(children: [TargetTab()]));
}
return deepLink;
}
), |
I have no idea why this parameter really exists! Changing it will not make any change.
The text was updated successfully, but these errors were encountered: