- Route Guards: Prevent routes from being opened based on a condition.
- More type checking for
SailorParams
:SailorParams<T>
now accept a generic typeT
, of the type of paramter that is required to be passed. When opening a route,runtimeType
of the passed value is compred to theT
passed when declaringSailorParam<T>
. - Provider
navigationKey
: An externalnavigatorKey
can be provided to sailor usingSailorOptions
.
- Add support for providing your own custom transitions.
- Add support for passing parameters when navigating route.
- BREAKING CHANGE:
Sailor.arguments
method is removed and replaced withSailor.args
.
SailorStackObserver
lets you get the current stack of routes.- Fix
crashing while retrieving
argumentswhen using
NavigationType.pushAndRemoveUntil`. - Refactor logs in
SailorLoggingObserver
.
- BREAKING CHANGE:
Sailor
now uses anavigatorKey
to carry out all navigation operations, there is no need of passingcontext
any more in any of sailor's instance methods. Make sure to add Sailor'snavigatorKey
in yourMaterialApp
orCupertinoApp
.
- Inbuilt page transitions.
- Launch multiple routes at the same time using
navigateMultiple
. - Ability to add default arguments when registering routes with
addRoute
.