|
|
|
@ -11,6 +11,7 @@ import '../../routes.dart';
|
|
|
|
import '../../util/dr_app_shared_pref.dart';
|
|
|
|
import '../../util/dr_app_shared_pref.dart';
|
|
|
|
import '../../util/dr_app_toast_msg.dart';
|
|
|
|
import '../../util/dr_app_toast_msg.dart';
|
|
|
|
import '../../widgets/shared/dr_app_circular_progress_Indeicator.dart';
|
|
|
|
import '../../widgets/shared/dr_app_circular_progress_Indeicator.dart';
|
|
|
|
|
|
|
|
import 'package:local_auth/error_codes.dart' as auth_error;
|
|
|
|
|
|
|
|
|
|
|
|
DrAppSharedPreferances sharedPref = new DrAppSharedPreferances();
|
|
|
|
DrAppSharedPreferances sharedPref = new DrAppSharedPreferances();
|
|
|
|
DrAppToastMsg toastMsg = DrAppToastMsg();
|
|
|
|
DrAppToastMsg toastMsg = DrAppToastMsg();
|
|
|
|
@ -64,9 +65,6 @@ class _KnownUserLoginState extends State<KnownUserLogin> {
|
|
|
|
void initState() {
|
|
|
|
void initState() {
|
|
|
|
super.initState();
|
|
|
|
super.initState();
|
|
|
|
_loggedUserFuture = getSharedPref();
|
|
|
|
_loggedUserFuture = getSharedPref();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
@ -80,7 +78,6 @@ class _KnownUserLoginState extends State<KnownUserLogin> {
|
|
|
|
_loginTypeFuture.then((res) {
|
|
|
|
_loginTypeFuture.then((res) {
|
|
|
|
_loginType =
|
|
|
|
_loginType =
|
|
|
|
2; //res['SELECTDeviceIMEIbyIMEI_List'][0]['LogInType'];
|
|
|
|
2; //res['SELECTDeviceIMEIbyIMEI_List'][0]['LogInType'];
|
|
|
|
|
|
|
|
|
|
|
|
}).catchError((err) {
|
|
|
|
}).catchError((err) {
|
|
|
|
print('${err}');
|
|
|
|
print('${err}');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
@ -318,6 +315,13 @@ class _KnownUserLoginState extends State<KnownUserLogin> {
|
|
|
|
availableBiometrics = await auth.getAvailableBiometrics();
|
|
|
|
availableBiometrics = await auth.getAvailableBiometrics();
|
|
|
|
} on PlatformException catch (e) {
|
|
|
|
} on PlatformException catch (e) {
|
|
|
|
print(e);
|
|
|
|
print(e);
|
|
|
|
|
|
|
|
if (e.code == auth_error.notAvailable) {
|
|
|
|
|
|
|
|
showErorrMsg("Auth Methods Not Available");
|
|
|
|
|
|
|
|
} else if (e.code == auth_error.passcodeNotSet) {
|
|
|
|
|
|
|
|
showErorrMsg("Auth Methods Not passcodeNotSet");
|
|
|
|
|
|
|
|
} else if (e.code == auth_error.permanentlyLockedOut) {
|
|
|
|
|
|
|
|
showErorrMsg("Auth Methods Not permanentlyLockedOut");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!mounted) return;
|
|
|
|
if (!mounted) return;
|
|
|
|
|
|
|
|
|
|
|
|
|