Skip to content
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

Unable to ecustomize rootDelegate.pickPagesForRootNavigator #3115

Closed
hightman opened this issue May 30, 2024 · 1 comment
Closed

Unable to ecustomize rootDelegate.pickPagesForRootNavigator #3115

hightman opened this issue May 30, 2024 · 1 comment

Comments

@hightman
Copy link

GetX's Nav2.0 has almost no documentation, and I can only explore it by reading the code myself.

Due to some reasons, I need to preserve the state of the home tabs page. By reading the code, I discovered that GetDelegate has an property named pickPagesForRootNavigator that can help me achieve this.

But it is declared as final, and can only be specified when creating GetDelegate. It is not possible to specify this option when creating Get.rootController.rootDelegate.

I tried to create GetDelegate and pass it to GetMaterialApp.router, However, at this point, I cannot access Get.routing to generate navigatorObservers.

@hightman
Copy link
Author

It seems that simply passing a default GetObserver() works fine, and I haven't noticed any impact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant