Skip to content

Commit

Permalink
fix: Add defaultTransitionQuery to router.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Jun 5, 2023
1 parent 9b9a1e5 commit a83294a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 29 deletions.
10 changes: 5 additions & 5 deletions packages/masamune/example/pubspec.lock
Expand Up @@ -404,7 +404,7 @@ packages:
path: "../../katana_form"
relative: true
source: path
version: "2.2.2"
version: "2.2.3"
katana_functions:
dependency: "direct overridden"
description:
Expand Down Expand Up @@ -544,7 +544,7 @@ packages:
path: "../../katana_theme"
relative: true
source: path
version: "2.0.4"
version: "2.0.5"
katana_theme_annotation:
dependency: "direct overridden"
description:
Expand Down Expand Up @@ -588,7 +588,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.0.23"
version: "2.0.24"
masamune_annotation:
dependency: "direct overridden"
description:
Expand Down Expand Up @@ -964,10 +964,10 @@ packages:
dependency: transitive
description:
name: uuid
sha256: "648e103079f7c64a36dc7d39369cabb358d377078a051d6ae2ad3aa539519313"
sha256: "2dd495c04ea91ba961459cd7b4588ce67f7cb4a236edc79031a69667067bd8db"
url: "https://pub.dev"
source: hosted
version: "3.0.7"
version: "4.0.0-beta3-1"
vector_math:
dependency: transitive
description:
Expand Down
2 changes: 2 additions & 0 deletions packages/masamune/lib/router/router.dart
Expand Up @@ -25,11 +25,13 @@ extension MasamuneModelAppRefExtensions on RefHasPage {
NestedAppRouter router({
required RouteQuery? initialQuery,
required List<RouteQueryBuilder> pages,
TransitionQuery? defaultTransitionQuery,
}) {
return page.watch((ref) {
return NestedAppRouter(
initialQuery: initialQuery,
pages: pages,
defaultTransitionQuery: defaultTransitionQuery,
);
});
}
Expand Down
48 changes: 24 additions & 24 deletions packages/masamune/pubspec.lock
Expand Up @@ -241,147 +241,147 @@ packages:
path: "../katana"
relative: true
source: path
version: "2.0.1"
version: "2.1.0"
katana_auth:
dependency: "direct main"
description:
path: "../katana_auth"
relative: true
source: path
version: "2.0.1"
version: "2.0.2"
katana_form:
dependency: "direct main"
description:
path: "../katana_form"
relative: true
source: path
version: "2.2.3"
version: "2.2.4"
katana_functions:
dependency: "direct main"
description:
path: "../katana_functions"
relative: true
source: path
version: "2.2.0"
version: "2.2.1"
katana_indicator:
dependency: "direct main"
description:
path: "../katana_indicator"
relative: true
source: path
version: "2.0.1"
version: "2.0.2"
katana_listenables:
dependency: "direct main"
description:
path: "../katana_listenables"
relative: true
source: path
version: "2.0.3"
version: "2.0.4"
katana_listenables_annotation:
dependency: "direct overridden"
description:
path: "../katana_listenables_annotation"
relative: true
source: path
version: "2.0.2"
version: "2.0.3"
katana_localization:
dependency: "direct main"
description:
path: "../katana_localization"
relative: true
source: path
version: "2.0.4"
version: "2.0.5"
katana_localization_annotation:
dependency: "direct overridden"
description:
path: "../katana_localization_annotation"
relative: true
source: path
version: "2.0.3"
version: "2.0.4"
katana_logger:
dependency: "direct main"
description:
path: "../katana_logger"
relative: true
source: path
version: "2.0.1"
version: "2.0.2"
katana_model:
dependency: "direct main"
description:
path: "../katana_model"
relative: true
source: path
version: "2.0.2"
version: "2.1.0"
katana_prefs:
dependency: "direct main"
description:
path: "../katana_prefs"
relative: true
source: path
version: "2.0.2"
version: "2.0.3"
katana_prefs_annotation:
dependency: "direct overridden"
description:
path: "../katana_prefs_annotation"
relative: true
source: path
version: "2.0.2"
version: "2.0.3"
katana_router:
dependency: "direct main"
description:
path: "../katana_router"
relative: true
source: path
version: "2.0.3"
version: "2.0.4"
katana_router_annotation:
dependency: "direct overridden"
description:
path: "../katana_router_annotation"
relative: true
source: path
version: "2.0.3"
version: "2.0.4"
katana_scoped:
dependency: "direct main"
description:
path: "../katana_scoped"
relative: true
source: path
version: "2.0.1"
version: "2.0.2"
katana_shorten:
dependency: "direct main"
description:
path: "../katana_shorten"
relative: true
source: path
version: "2.0.1"
version: "2.0.2"
katana_storage:
dependency: "direct main"
description:
path: "../katana_storage"
relative: true
source: path
version: "2.0.1"
version: "2.0.2"
katana_theme:
dependency: "direct main"
description:
path: "../katana_theme"
relative: true
source: path
version: "2.0.5"
version: "2.0.6"
katana_theme_annotation:
dependency: "direct overridden"
description:
path: "../katana_theme_annotation"
relative: true
source: path
version: "2.0.2"
version: "2.0.3"
katana_ui:
dependency: "direct main"
description:
path: "../katana_ui"
relative: true
source: path
version: "2.0.2"
version: "2.0.3"
lints:
dependency: transitive
description:
Expand All @@ -404,7 +404,7 @@ packages:
path: "../masamune_annotation"
relative: true
source: path
version: "2.0.1"
version: "2.0.2"
matcher:
dependency: transitive
description:
Expand Down Expand Up @@ -790,10 +790,10 @@ packages:
dependency: transitive
description:
name: uuid
sha256: "648e103079f7c64a36dc7d39369cabb358d377078a051d6ae2ad3aa539519313"
sha256: "2dd495c04ea91ba961459cd7b4588ce67f7cb4a236edc79031a69667067bd8db"
url: "https://pub.dev"
source: hosted
version: "3.0.7"
version: "4.0.0-beta3-1"
vector_math:
dependency: transitive
description:
Expand Down

0 comments on commit a83294a

Please sign in to comment.