wip
This commit is contained in:
parent
7535d5c408
commit
9482e1897a
|
@ -51,25 +51,9 @@ GoRouter createRouter(AppStateNotifier appStateNotifier) {
|
||||||
initialLocation: '/',
|
initialLocation: '/',
|
||||||
debugLogDiagnostics: true,
|
debugLogDiagnostics: true,
|
||||||
redirect: (context, state) {
|
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 (Platform.isIOS) {
|
if (Platform.isIOS) {
|
||||||
if (state.allParams.toString().contains("email") &&
|
if (state.uri.toString().contains("freaccess://changepass/")) {
|
||||||
state.matchedLocation == '/') {
|
|
||||||
log('Redirecting to forgotPassword');
|
|
||||||
throw Exception('Redirecting to forgotPassword');
|
throw Exception('Redirecting to forgotPassword');
|
||||||
// context.go('/signInPage');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue