Skip to content

Commit

Permalink
fix(katana_router): Change initialRouteQuery to initialTransitionQuery.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Oct 16, 2022
1 parent 73657ce commit aff3de9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/katana_router/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ class Boot extends BootRouteQueryBuilder {
}

@override
TransitionQuery get initialRouteQuery => TransitionQuery.fade;
TransitionQuery get initialTransitionQuery => TransitionQuery.fade;
}
2 changes: 1 addition & 1 deletion packages/katana_router/lib/src/app_router_delegate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class _AppRouterDelegate extends RouterDelegate<RouteQuery>
final boot = router._config.boot;
if (boot != null) {
await push<void>(boot.resolve(configuration.path));
return push<void>(configuration, boot.initialRouteQuery);
return push<void>(configuration, boot.initialTransitionQuery);
}
return super.setInitialRoutePath(configuration);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/katana_router/lib/src/route_query_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ abstract class BootRouteQueryBuilder extends StatefulWidget {

/// Define [TransitionQuery] for displaying the first page after the boot page.
/// ブートページを表示した後最初のページを表示する際の[TransitionQuery]を定義します。
TransitionQuery get initialRouteQuery;
TransitionQuery get initialTransitionQuery;

/// Describe the initialization process after the screen is displayed.
/// 画面表示後の初期化処理を記述します。
Expand Down

0 comments on commit aff3de9

Please sign in to comment.