fix: redicionar para / apos modal de recuperar senha
This commit is contained in:
parent
693ebcd670
commit
ec5abee2aa
|
@ -217,8 +217,6 @@ PODS:
|
|||
- GTMSessionFetcher/Core (3.5.0)
|
||||
- image_picker_ios (0.0.1):
|
||||
- Flutter
|
||||
- integration_test (0.0.1):
|
||||
- Flutter
|
||||
- IosAwnCore (0.10.0)
|
||||
- local_auth_darwin (0.0.1):
|
||||
- Flutter
|
||||
|
@ -292,7 +290,6 @@ DEPENDENCIES:
|
|||
- google_mlkit_commons (from `.symlinks/plugins/google_mlkit_commons/ios`)
|
||||
- google_mlkit_face_detection (from `.symlinks/plugins/google_mlkit_face_detection/ios`)
|
||||
- image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
|
||||
- integration_test (from `.symlinks/plugins/integration_test/ios`)
|
||||
- local_auth_darwin (from `.symlinks/plugins/local_auth_darwin/darwin`)
|
||||
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
|
||||
- permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`)
|
||||
|
@ -372,8 +369,6 @@ EXTERNAL SOURCES:
|
|||
:path: ".symlinks/plugins/google_mlkit_face_detection/ios"
|
||||
image_picker_ios:
|
||||
:path: ".symlinks/plugins/image_picker_ios/ios"
|
||||
integration_test:
|
||||
:path: ".symlinks/plugins/integration_test/ios"
|
||||
local_auth_darwin:
|
||||
:path: ".symlinks/plugins/local_auth_darwin/darwin"
|
||||
path_provider_foundation:
|
||||
|
@ -396,7 +391,7 @@ SPEC CHECKSUMS:
|
|||
app_tracking_transparency: e169b653478da7bb15a6c61209015378ca73e375
|
||||
awesome_notifications: dd5518ff1c80be03d4f1c40f04da9d9cc2a37af5
|
||||
camera_avfoundation: dd002b0330f4981e1bbcb46ae9b62829237459a4
|
||||
connectivity_plus: ddd7f30999e1faaef5967c23d5b6d503d10434db
|
||||
connectivity_plus: 4c41c08fc6d7c91f63bc7aec70ffe3730b04f563
|
||||
device_info_plus: 97af1d7e84681a90d0693e63169a5d50e0839a0d
|
||||
DKImagePickerController: 946cec48c7873164274ecc4624d19e3da4c1ef3c
|
||||
DKPhotoGallery: b3834fecb755ee09a593d7c9e389d8b5d6deed60
|
||||
|
@ -428,7 +423,6 @@ SPEC CHECKSUMS:
|
|||
GoogleUtilities: 26a3abef001b6533cf678d3eb38fd3f614b7872d
|
||||
GTMSessionFetcher: 5aea5ba6bd522a239e236100971f10cb71b96ab6
|
||||
image_picker_ios: c560581cceedb403a6ff17f2f816d7fea1421fc1
|
||||
integration_test: 252f60fa39af5e17c3aa9899d35d908a0721b573
|
||||
IosAwnCore: 653786a911089012092ce831f2945cd339855a89
|
||||
local_auth_darwin: 66e40372f1c29f383a314c738c7446e2f7fdadc3
|
||||
MLImage: 0ad1c5f50edd027672d8b26b0fee78a8b4a0fc56
|
||||
|
@ -444,7 +438,7 @@ SPEC CHECKSUMS:
|
|||
SDWebImage: 8a6b7b160b4d710e2a22b6900e25301075c34cb3
|
||||
share_plus: 8875f4f2500512ea181eef553c3e27dba5135aad
|
||||
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
|
||||
sqflite_darwin: a553b1fd6fe66f53bbb0fe5b4f5bab93f08d7a13
|
||||
sqflite_darwin: 5a7236e3b501866c1c9befc6771dfd73ffb8702d
|
||||
SwiftyGif: 706c60cf65fa2bc5ee0313beece843c8eb8194d4
|
||||
Toast: 1f5ea13423a1e6674c4abdac5be53587ae481c4e
|
||||
url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import UIKit
|
||||
import app_links
|
||||
import Flutter
|
||||
import Flutter
|
||||
|
||||
@main
|
||||
@objc class AppDelegate: FlutterAppDelegate {
|
||||
|
|
|
@ -49,6 +49,29 @@ GoRouter createRouter(AppStateNotifier appStateNotifier) {
|
|||
navigatorKey: key,
|
||||
initialLocation: '/',
|
||||
debugLogDiagnostics: true,
|
||||
redirect: (context, state) {
|
||||
log('state.allParams: ${state.allParams}');
|
||||
log('state.path: ${state.path}');
|
||||
log('state.extra: ${state.extra}');
|
||||
log('state.transitionInfo: ${state.transitionInfo}');
|
||||
log('state.pageKey: ${state.pageKey}');
|
||||
log('state.name: ${state.name}');
|
||||
log('state.matchedLocation: ${state.matchedLocation}');
|
||||
log('state.topRoute: ${state.topRoute}');
|
||||
log('state.uri: ${state.uri}');
|
||||
log('state.pathParameters: ${state.pathParameters}');
|
||||
log('Context ${context.toString()}');
|
||||
log('Context: ${context.describeWidget('context')}');
|
||||
log('Context: ${context.describeElement('context')}');
|
||||
|
||||
if (state.allParams.toString().contains("email") &&
|
||||
state.matchedLocation == '/') {
|
||||
log('Redirecting to forgotPassword');
|
||||
throw Exception('Redirecting to forgotPassword');
|
||||
// context.go('/signInPage');
|
||||
}
|
||||
return null;
|
||||
},
|
||||
refreshListenable: appStateNotifier,
|
||||
// errorBuilder: (context, state) => appStateNotifier.showSplashImage
|
||||
// ? Builder(
|
||||
|
|
Loading…
Reference in New Issue