WIP
This commit is contained in:
parent
ec5abee2aa
commit
7535d5c408
|
@ -1,5 +1,6 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:developer';
|
import 'dart:developer';
|
||||||
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:hub/flutter_flow/nav/nav.dart';
|
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||||
|
@ -63,12 +64,13 @@ GoRouter createRouter(AppStateNotifier appStateNotifier) {
|
||||||
log('Context ${context.toString()}');
|
log('Context ${context.toString()}');
|
||||||
log('Context: ${context.describeWidget('context')}');
|
log('Context: ${context.describeWidget('context')}');
|
||||||
log('Context: ${context.describeElement('context')}');
|
log('Context: ${context.describeElement('context')}');
|
||||||
|
if (Platform.isIOS) {
|
||||||
if (state.allParams.toString().contains("email") &&
|
if (state.allParams.toString().contains("email") &&
|
||||||
state.matchedLocation == '/') {
|
state.matchedLocation == '/') {
|
||||||
log('Redirecting to forgotPassword');
|
log('Redirecting to forgotPassword');
|
||||||
throw Exception('Redirecting to forgotPassword');
|
throw Exception('Redirecting to forgotPassword');
|
||||||
// context.go('/signInPage');
|
// context.go('/signInPage');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue