This commit is contained in:
J. A. Messias 2024-11-21 14:42:41 -03:00
parent ec5abee2aa
commit 7535d5c408
1 changed files with 8 additions and 6 deletions

View File

@ -1,5 +1,6 @@
import 'dart:async';
import 'dart:developer';
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:hub/flutter_flow/nav/nav.dart';
@ -63,13 +64,14 @@ GoRouter createRouter(AppStateNotifier appStateNotifier) {
log('Context ${context.toString()}');
log('Context: ${context.describeWidget('context')}');
log('Context: ${context.describeElement('context')}');
if (Platform.isIOS) {
if (state.allParams.toString().contains("email") &&
state.matchedLocation == '/') {
log('Redirecting to forgotPassword');
throw Exception('Redirecting to forgotPassword');
// context.go('/signInPage');
}
}
return null;
},
refreshListenable: appStateNotifier,