From 03998f9cf1bec53b70fe158ef1120b68327d10ee Mon Sep 17 00:00:00 2001 From: JulianAlcala Date: Tue, 14 Apr 2026 14:44:03 +0200 Subject: [PATCH] router fixes --- .../delete_account/presentation/delete_account_screen.dart | 2 +- .../delete_account/presentation/widgets/confirm_dialog.dart | 2 +- .../verify_code/verify_link_phone_code_screen.dart | 2 +- .../presentation/new_password/new_password_screen.dart | 2 +- .../sign_up/presentation/screens/account_created_screen.dart | 2 +- .../flutter_treezor_entrust_sdk_bridge/analysis_options.yaml | 4 ++++ 6 files changed, 9 insertions(+), 5 deletions(-) diff --git a/modules/legacy/modules/account/lib/src/features/delete_account/presentation/delete_account_screen.dart b/modules/legacy/modules/account/lib/src/features/delete_account/presentation/delete_account_screen.dart index 5ad43d6c..782ee70d 100644 --- a/modules/legacy/modules/account/lib/src/features/delete_account/presentation/delete_account_screen.dart +++ b/modules/legacy/modules/account/lib/src/features/delete_account/presentation/delete_account_screen.dart @@ -133,7 +133,7 @@ class _RequestCancelSection extends ConsumerWidget { onPressed: () { if (isLoading) return; if (user == null) { - navigationContract.goTo(AppRoutes.login); + navigationContract.goTo(AppRoutes.legacyLogin); return; } diff --git a/modules/legacy/modules/account/lib/src/features/delete_account/presentation/widgets/confirm_dialog.dart b/modules/legacy/modules/account/lib/src/features/delete_account/presentation/widgets/confirm_dialog.dart index 512331ba..6578b940 100644 --- a/modules/legacy/modules/account/lib/src/features/delete_account/presentation/widgets/confirm_dialog.dart +++ b/modules/legacy/modules/account/lib/src/features/delete_account/presentation/widgets/confirm_dialog.dart @@ -43,7 +43,7 @@ class ConfirmDialog extends ConsumerWidget { deleteAccountViewModelProvider.select((s) => s.isComplete), ); if (isComplete) { - navigationContract.goTo(AppRoutes.login); + navigationContract.goTo(AppRoutes.legacyLogin); } }, ), diff --git a/modules/legacy/modules/legacy_auth/lib/src/features/link_phone/presentation/verify_code/verify_link_phone_code_screen.dart b/modules/legacy/modules/legacy_auth/lib/src/features/link_phone/presentation/verify_code/verify_link_phone_code_screen.dart index 3a55a20e..8b766c41 100644 --- a/modules/legacy/modules/legacy_auth/lib/src/features/link_phone/presentation/verify_code/verify_link_phone_code_screen.dart +++ b/modules/legacy/modules/legacy_auth/lib/src/features/link_phone/presentation/verify_code/verify_link_phone_code_screen.dart @@ -87,7 +87,7 @@ class LegacyVerifyLinkPhoneCodeScreen extends ConsumerWidget { ); if (updatedState.codeVerified) { - navigationContract.pushTo(AppRoutes.login); + navigationContract.pushTo(AppRoutes.legacyLogin); } }, text: context.translate(I18n.enter), diff --git a/modules/legacy/modules/legacy_auth/lib/src/features/recover_password/presentation/new_password/new_password_screen.dart b/modules/legacy/modules/legacy_auth/lib/src/features/recover_password/presentation/new_password/new_password_screen.dart index a823c178..98f95d47 100644 --- a/modules/legacy/modules/legacy_auth/lib/src/features/recover_password/presentation/new_password/new_password_screen.dart +++ b/modules/legacy/modules/legacy_auth/lib/src/features/recover_password/presentation/new_password/new_password_screen.dart @@ -233,7 +233,7 @@ class LegacyNewPasswordScreen extends ConsumerWidget { legacyRecoverPasswordViewModelProvider, ); if (updatedState.passwordChanged) { - navigationContract.goTo(AppRoutes.dashboardHome); + navigationContract.goTo(AppRoutes.controlPanel); } }, text: context.translate(I18n.accept), diff --git a/modules/legacy/modules/legacy_auth/lib/src/features/sign_up/presentation/screens/account_created_screen.dart b/modules/legacy/modules/legacy_auth/lib/src/features/sign_up/presentation/screens/account_created_screen.dart index 464fcc9d..d303a344 100644 --- a/modules/legacy/modules/legacy_auth/lib/src/features/sign_up/presentation/screens/account_created_screen.dart +++ b/modules/legacy/modules/legacy_auth/lib/src/features/sign_up/presentation/screens/account_created_screen.dart @@ -81,7 +81,7 @@ class LegacyAccountCreatedScreen extends ConsumerWidget { const SizedBox(height: 20), PrimaryButton( - onPressed: () => navigationContract.goTo(AppRoutes.login), + onPressed: () => navigationContract.goTo(AppRoutes.legacyLogin), text: context.translate(I18n.accountCreatedContinue), color: theme.getColorFor(ThemeCode.legacyPrimary), ), diff --git a/packages/flutter_treezor_entrust_sdk_bridge/analysis_options.yaml b/packages/flutter_treezor_entrust_sdk_bridge/analysis_options.yaml index a5744c1c..3e22bef2 100644 --- a/packages/flutter_treezor_entrust_sdk_bridge/analysis_options.yaml +++ b/packages/flutter_treezor_entrust_sdk_bridge/analysis_options.yaml @@ -1,4 +1,8 @@ include: package:flutter_lints/flutter.yaml +analyzer: + exclude: + - example/** + # Additional information about this file can be found at # https://dart.dev/guides/language/analysis-options