WIP
This commit is contained in:
parent
ec5abee2aa
commit
7535d5c408
|
@ -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,12 +64,13 @@ GoRouter createRouter(AppStateNotifier appStateNotifier) {
|
|||
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');
|
||||
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;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue