Skip to content

Commit d3e051f

Browse files
committed
fix(authentication): update button navigation to avoid replacing entire stack
- Change context.goNamed to context.pushNamed in AuthenticationPage - This modification prevents the authentication page from being replaced - Allows users to navigate back to the authentication page
1 parent cf687d0 commit d3e051f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/authentication/view/authentication_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class AuthenticationPage extends StatelessWidget {
8585
onPressed: isLoading
8686
? null
8787
: () {
88-
context.goNamed(Routes.requestCodeName);
88+
context.pushNamed(Routes.requestCodeName);
8989
},
9090
label: Text(l10n.authenticationEmailSignInButton),
9191
style: ElevatedButton.styleFrom(

0 commit comments

Comments
 (0)