router fixes
This commit is contained in:
@@ -133,7 +133,7 @@ class _RequestCancelSection extends ConsumerWidget {
|
||||
onPressed: () {
|
||||
if (isLoading) return;
|
||||
if (user == null) {
|
||||
navigationContract.goTo(AppRoutes.login);
|
||||
navigationContract.goTo(AppRoutes.legacyLogin);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ class ConfirmDialog extends ConsumerWidget {
|
||||
deleteAccountViewModelProvider.select((s) => s.isComplete),
|
||||
);
|
||||
if (isComplete) {
|
||||
navigationContract.goTo(AppRoutes.login);
|
||||
navigationContract.goTo(AppRoutes.legacyLogin);
|
||||
}
|
||||
},
|
||||
),
|
||||
|
||||
@@ -87,7 +87,7 @@ class LegacyVerifyLinkPhoneCodeScreen extends ConsumerWidget {
|
||||
);
|
||||
|
||||
if (updatedState.codeVerified) {
|
||||
navigationContract.pushTo(AppRoutes.login);
|
||||
navigationContract.pushTo(AppRoutes.legacyLogin);
|
||||
}
|
||||
},
|
||||
text: context.translate(I18n.enter),
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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),
|
||||
),
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user