You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
First let me say that this is a great package.
I am trying to get the current route in order to perform a specific action.
Is there a way to get the current route - something like Routes.sailor.currentRouteName or Routes.sailor.currentRoute.
I came up with 2 possible options, if there is another way please let me know:
Maybe use the 'SailorLoggingObserver` (like its suggested in issue Custom navigatorObserver #32 ) but I am not sure this is the correct approach?
The option I am using now is ModalRoute.of(context).isCurrent but I am guessing navigation package like Sailor should have something build in, no?
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
First let me say that this is a great package.
I am trying to get the current route in order to perform a specific action.
Is there a way to get the current route - something like
Routes.sailor.currentRouteName
orRoutes.sailor.currentRoute
.I came up with 2 possible options, if there is another way please let me know:
ModalRoute.of(context).isCurrent
but I am guessing navigation package like Sailor should have something build in, no?Thanks
The text was updated successfully, but these errors were encountered: