Skip to content

Commit cf687d0

Browse files
committed
refactor(authentication): use pushNamed instead of goNamed for navigation
- Replace context.goNamed with context.pushNamed in _RequestCodeView - This change affects both account linking and regular verification flows - The modification ensures a new entry is pushed onto the navigation stack - instead of replacing the current route, changing the navigation behavior
1 parent 81485d3 commit cf687d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/authentication/view/request_code_page.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ class _RequestCodeView extends StatelessWidget {
7272
context,
7373
).routerDelegate.currentConfiguration.last.route.name;
7474
if (currentRouteName == Routes.accountLinkingRequestCodeName) {
75-
context.goNamed(
75+
context.pushNamed(
7676
Routes.accountLinkingVerifyCodeName,
7777
pathParameters: {'email': state.email!},
7878
);
7979
} else {
80-
context.goNamed(
80+
context.pushNamed(
8181
Routes.verifyCodeName,
8282
pathParameters: {'email': state.email!},
8383
);

0 commit comments

Comments
 (0)