router fixes

This commit is contained in:
2026-04-14 14:44:03 +02:00
parent 811e92defc
commit 03998f9cf1
6 changed files with 9 additions and 5 deletions

View File

@@ -133,7 +133,7 @@ class _RequestCancelSection extends ConsumerWidget {
onPressed: () {
if (isLoading) return;
if (user == null) {
navigationContract.goTo(AppRoutes.login);
navigationContract.goTo(AppRoutes.legacyLogin);
return;
}

View File

@@ -43,7 +43,7 @@ class ConfirmDialog extends ConsumerWidget {
deleteAccountViewModelProvider.select((s) => s.isComplete),
);
if (isComplete) {
navigationContract.goTo(AppRoutes.login);
navigationContract.goTo(AppRoutes.legacyLogin);
}
},
),

View File

@@ -87,7 +87,7 @@ class LegacyVerifyLinkPhoneCodeScreen extends ConsumerWidget {
);
if (updatedState.codeVerified) {
navigationContract.pushTo(AppRoutes.login);
navigationContract.pushTo(AppRoutes.legacyLogin);
}
},
text: context.translate(I18n.enter),

View File

@@ -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),

View File

@@ -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),
),

View File

@@ -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