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

Allow setting custom navigation key #12

Closed
kuhnroyal opened this issue Nov 11, 2019 · 1 comment
Closed

Allow setting custom navigation key #12

kuhnroyal opened this issue Nov 11, 2019 · 1 comment
Labels

Comments

@kuhnroyal
Copy link

It would be great if we could set a custom GlobalKey<NavigatorState> navigatorKey which defaults to the existing one if not provided. This would make it easier to integrate Sailor with other libraries that also rely on the navigator key.

@gurleensethi
Copy link
Owner

Hi @kuhnroyal
I am happy to let you know that Sailor v0.6.0 now supports passing a custom navigatorKey.
You can achieve this by using SailorOptions.

Sailor(
  options: SailorOptions(
    navigatorKey: <your_navigator_key>
  ),
)

Looking for more feature requests.

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

No branches or pull requests

2 participants