- Make
analyzer
be a transitive dependency
- [BREAKING] Update dart SDK to
>=2.17 < 4.0.0
- [BREAKING] Split the
Nuvigator.of
nullOk's logic in two methods:Nuvigator.of
andNuvigator.maybeOf
- [BREAKING] Change Nuvigator's
initialArguments
type toMap<String, dynamic>?
- [FIX] Fix nullability check when there are no path parameters to be extracted
- [BREAKING] Add support for Sound Null Safety
- [BREAKING] Remove Legacy API and Deprecated options related to it
- [FIX] Make Nuvigator compatible with Flutter 2.10.5
- [FIX] Make Nuvigator compatible with Flutter 3.0.2
- [FIX] [POSSIBLY BREAKING] Makes the default behavior of Nuvigator to not re-build itself and it's state when the NuRouter provided instance changes. This allows for fixing some state reloads/resets and navigation lost, specially on nested flows. If for some reason you were relying in the current behavior for some feature, you can provide a
shouldRebuild
property to theNuvigator
that should returntrue
when you wish to perform the rebuild.
- [FIX] Make Nuvigator compatible with Flutter 3.0.2
- [FIX] Make Nuvigator compatible with Flutter 2.10.5
- [FIX] [POSSIBLY BREAKING] Makes the default behavior of Nuvigator to not re-build itself and it's state when the NuRouter provided instance changes. This allows for fixing some state reloads/resets and navigation lost, specially on nested flows. If for some reason you were relying in the current behavior for some feature, you can provide a
shouldRebuild
property to theNuvigator
that should returntrue
when you wish to perform the rebuild.
- [FIX] Revert changes from 1.6.1 due to some unexpected behaviors found
- [FIX] Fix re-renders due to other state changes when
Nuvigator.shouldRebuild
returns false
- [ENHANCEMENT] Add
Nuvigator.shouldRebuild
property for controlling when a Nuvigator should be rebuild.
- [NEW] Add
NuRoute.metaData
to be used as a metadata dictionary for NuRoutes - [NEW] Add
NuRouter.buildWrapper
that can be used to wrap thebuilder
function of the registered NuRoutes
- [FIX] Fix error when disposing a Nuvigator that was rendered in a Route that does not implement
NuvigatorPageRoute
- [NEW] Add
NuvigatorPageRoute.nestedNuvigator
property that is going to link to the nested Nuvigator instance that is being rendered by this Route - [NEW] Add
NuvigatorState.presenterRoute
that will link to the Parent Route that is rendering this Nested Nuvigator - [NEW] Add
NuvigatorPageRoute.of(context)
to retrieve the closestNuvigatorPageRoute
in the Context
- [ENHANCEMENT] Improvements to all
*Named
method in Nuvigator - [NEW] Add
NuRoute.withPath
to be used as aRoutePredicate
matcher - [NEW] Add new methods in Nuvigator:
replaceNamed
,removeByPredicate
andpopAndPush
- [NEW] Adds key,
inheritableObservers
,debug
,observers
,shouldPopRoot
arguments to theNuvigator.routes
factory - [NEW] Adds the optional result argument to the
Nuvigator.open
method
- [FIX] Revert support for List Query Arguments in the legacy API, and preserve previous typings
- [FIX] Make
Nuvigator.open
propagate all options to parent when the route is not found at the current level - [FIX] Properly support List Query Arguments in DeepLinks, instead of picking a random one
- Improve error message when a NuRoute is registered twice
- Improve error handling on empty NuRouters
- Add option to get registered routes after NuRouter initialization when overriding the
lazyRouteRegister
option in NuRouter - [BREAKING] Change the
NuRouter.onError
to handle any thrown object (includingException
)- Type of the
NuRouter.onError
function changed fromException
toObject
- Type of the
- Bump dependencies versions and make code adjustments to support usage on non nullable projects (does not include non-nullable in Nuvigator itself)
- Improve error message when a NuRoute is registered twice
- Add option to get registered routes after NuRouter initialization when overriding the
lazyRouteRegister
option in NuRouter
- Change the
NuRouter.onError
to handle any thrown object (includingException
)
- Bump dependencies versions and make code adjustments to support non nullable
- Add the
ScreenTypeBuilder
class to allow the definition and creation ofScreenTypes
in an ad-hoc manner - Add the
screenType
parameter to theNuvigatorState.open
method, allowing to override theScreenType
of a defined Route to be opened
- First stable release with NEXT API (check past beta changelog entries for details)
- Add option in NuRouter to retry the initialization of the Router when it fails
- Add option in NuRouter to provide an error handling function when the Router initialization fails
- Fix extra arguments passing on the [NuvigatorState.open] method
- Fix open method in order to transport params through actions
- Fix the NuRouteSettings copy and fallback methods that were not considering the settings property
- Allow specifying which push method to use when calling [NuvigatorState.open]
- Fix the
NuRouterLoader
to re-instantiate the nuvigator only if the router change
- Fix to use the screenType when the fallback one is not provided
- Improvements on next API typings
- Improvements to next generator
- Add
awaitForInit
option in theNuRouter
to configure if it should support async initialization - Fix router property name on
NuRoute
- Make
loadingWidget
a getter method
- Add support from Navigation coming from Native side on Next API
INuRouter.getRoute
now accepts an optionalisFromNative
optionNuvigatorState.open
now accepts an optionalisFromNative
option
- Remove default screenType from Nuvigator constructor
- Fixed asserts on Nuvigator
- Add improved error message when a ScreenRoute is rendered without a ScreenType specified
- Fix conflict between
Nuvigator
andNuvigatorInner
key
- Introduction of a new dynamic API (aka:
next
), more info can be found at it's own documentation- DeepLinks and RouteNames where unified under paths
- New dynamic approach to define Routes and Routers
- More info can be found at here
initialDeepLink
andinitialRoute
have better error reporting and a more precise behavior.- Just the explicitly provided initialRoute is going to be used to find the Route.
- Nuvigator now relies on a interface type
INuRouter
instead of a concrete specific implementation onScreenNotFound
method was removed- Introduction of
NuvigatorState.open
in favor of.openDeepLink
. This new method supports nested deepLink navigation. - Old API can be considered deprecated from now on. Prefer using the
next
API on new projects.
- Fix problems caused by bump in
analyzer
dependency
- Update README
- Update pubspec.yaml to support analyzer up to version
0.41.0
- [BREAKING] Rename classes to avoid conflicts with Flutter 1.22 Router Widget
Router
was renamed toNuRouter
- The
NuRouter
annotation was renamed tonuRouter
const orcustomNuRouter
function
- Fix NPE exception when a old instance of router tries calling some methods on it's nuvigator
- Fix a
NavigationObserver
error when the nuvigator is updated. Now we are reloading theinheritableObservers
andStateTracker
when has an update.
- Add support for typed screen arguments on deep links. In addition to
String
, we now supportint
,double,
bool
, andDateTime
.
- Update ReCase version support to '>= 2.0.0 <3.1.0'
- Updates the codebase to flutter 1.17 (stable) version
- Support query parameters with dashes by converting them to camelCase
- Downgrade the analyzer dependency to '>=0.38.5 <0.40.0'
- Fix an exception when the args are null because are passed by the constructor
- Fix the
Nuvigator.of(context)
to start the search at the last state instead of root
- Make
initialDeepLink
work passing arguments to destination route
- Allow to pass an
initialDeepLink
- Add new option to pop SystemNavigator on last screen of the Root Router
- [BREAKING] API Simplifications/Changes.
- Removal of
ScreenWidget
and related generated classes. - Removal of
FlowRoute
, now you can use the defaultScreenRoute
and pass the Nuvigator to the builder function. - Removal of
GlobalRouter
, everyRouter
had it's capabilities incorporated, you can override previousGlobalRouter
properties directly in your topmost Router class, and pass it directly to the Nuvigator. - Removal of Nuvigator
initialArgs
auto-passing, now you should explicitly provide the arguments required to the nested nuvigator. The suggestion is to pass it to the Router constructor. - Removal of
FlowRouters
. - Nested Nuvigators will not have it's router exposed by the parent anymore.
- Use extension methods to navigation methods in the Router. Instead of
ExampleNavigation.of(context).toRoute()
useRouter.of<ExampleRouter>(context).toExampleRoute()
. - Use of extension methods to
screensMap
androuters
generator. Instead of passing this to the function, just call the private getter_$screensMap
and_$routers
in theRouter
class. - Unify
Router
andBaseRouter
, instead of extendingBaseRouter
you should extendRouter
directly. - Rename
getDeepLinkPrefix
todeepLinkPrefix
. initialRoute
is now a required argument to Nuvigator.
- Removal of
- [IMPORTANT] Router instances should be unique per Nuvigator. The same Router instance SHOULD NOT be shared by different Nuvigator (we advise to create new instances together with the Nuvigator).
- A bug was fixed were the
maybePop
method was not consistent with the Android back button behavior. Now the expected behavior is to always pop the Route of the active Nuvigator. - Nuvigator now keeps track of it's Route stack.
- Added debug flag to Nuvigator to log all route transitions/changes.
- Observers management was moved into the state lifecycle to ensure that inheritableObservers are always going to be considered.
- [BUMP] Updates to Flutter 1.12.1, resolves some deprecation warnings.
- A
toMap
getter was added toArgs*
classes to serialize them intoMap<String, Object>
. - Added new mixin
NuvigatorRoute
that should be incorporated byPageRoutes
used in customScreenType
s. While this mixin is optional, it will guarantee the correct behavior of Android's back button and also make nested Nuvigators Routes presentAppBar
back buttons correctly based in the overall App state, and not only by the current Nuvigator. (The provided screensTypes Material and Cupertino have already been update to include this new Mixin). - Improvement of some error messages that could be misleading or produce unexpected error.
- Increase plugins version range
- Fix the bug when Android back button is pressed closing the app. Now, when the back button is pressed, the nuvigator will try to close the current page and will just close the app when doesn't have any pages to pop.
- Add
FlowRouter
back, compatible with the new API of nested Nuvigators - Increase version constraint of
analyzer
- Fix a bug when trying to call onDeepLinkNotfound
- Update pubspec.yaml dependencies versions
- Improve pub description and update packages
- [BREAKING] Major refactor and API revamp
- Create
Nuvigator
navigator widget - Make
Hero
animations work Screen
was renamed toScreenRoute
FlowRoute
is aScreenRoute
for nested Nuvigators.- Make
ScreenRoute
cary information about DeepLinks - Make
GlobalRouter
able to be created with callbacks and a baseRouter - Add
cupertinoDialogScreenType
ScreenType - Provide access to the
GlobalRouter
throughInheritedWidgets
- Remove the need to extend the
GlobalRouter
- Removal of
NavigationService
in favor ofScreenRoute
- Removal of
FlowRouter
in favor of nestedNuvigators
- Removal of
ScreenContext
in favor ofBuildContext
- Added code generation for creating code from a base Router defined
- Fix transition animation when coming from native
- Fix transition animation when popping from flow
FlowRouter
type now extendsObject
- The
arguments
of push methods was changed fromMap
toObject
ScreenWidget
now is generic to set args type (default isObject
)
- Add
popUntil
toNavigationService
- Initial version