Skip to content

Commit 7ce02c7

Browse files
committed
bump: version 0.12.0
1 parent 409d2e4 commit 7ce02c7

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.12.0
2+
[2022-08-28]
3+
#### Added
4+
- Add OnRouteNotRegistered callback
5+
16
## 0.11.0
27
[2022-08-13]
38
#### Added

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,22 @@
2121
nativeNavigationLogEnabled: true,
2222
pathSeparator: MicroAppPathSeparator.slash // It joins the routes segments using slash "/" automatically
2323
24-
// the [MicroPageTransitionType.platform] is a dynamic transition type,
24+
// The [MicroPageTransitionType.platform] is a dynamic transition type,
2525
// for iOS it will use Cupertino, and for others it will use Material.
26-
pageTransitionType: MicroPageTransitionType.platform
26+
pageTransitionType: MicroPageTransitionType.platform,
27+
28+
// When pushing routes, if the route is not registered, this will be triggered,
29+
// and it will abort the navigation
30+
//
31+
// [onUnknownRoute] will not be dispatched, since the navigation was aborted.
32+
//
33+
// To makes this works, do:
34+
// - Use root navigator(from MaterialApp) call NavigatorInstance.push...() without context
35+
// - Use MicroAppNavigatorWidget as your nested navigators
36+
// - Use RouterGenerator.onGenerateRoute mixin in your custom navigators
37+
onRouteNotRegistered: (route, {arguments, type, context}) {
38+
print('[OnRouteNotRegistered] Route not found: $route, $arguments, $type');
39+
},
2740
)
2841
);
2942
```

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_micro_app
22
description: A package to speed up the creation of micro apps structure in Flutter applications
3-
version: 0.11.0
3+
version: 0.12.0
44
homepage: https://github.com/emanuel-braz/flutter_micro_app
55

66
environment:

0 commit comments

Comments
 (0)