|
|
|
@ -71,6 +71,7 @@ class _VerificationMethodsState extends State<VerificationMethods> {
|
|
|
|
void initState() {
|
|
|
|
void initState() {
|
|
|
|
super.initState();
|
|
|
|
super.initState();
|
|
|
|
_loggedUserFuture = getSharedPref();
|
|
|
|
_loggedUserFuture = getSharedPref();
|
|
|
|
|
|
|
|
_getAvailableBiometrics();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future<void> getSharedPref() async {
|
|
|
|
Future<void> getSharedPref() async {
|
|
|
|
@ -499,7 +500,8 @@ class _VerificationMethodsState extends State<VerificationMethods> {
|
|
|
|
authenticateUser(3, BiometricType.fingerprint.index, authProv)
|
|
|
|
authenticateUser(3, BiometricType.fingerprint.index, authProv)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: RoundedContainer(
|
|
|
|
child: RoundedContainer(
|
|
|
|
backgroundColor: BiometricType.fingerprint.index == 1
|
|
|
|
backgroundColor:
|
|
|
|
|
|
|
|
checkIfBiometricAvailable(BiometricType.fingerprint)
|
|
|
|
? Colors.white
|
|
|
|
? Colors.white
|
|
|
|
: Colors.white.withOpacity(.7),
|
|
|
|
: Colors.white.withOpacity(.7),
|
|
|
|
borderColor: Colors.grey,
|
|
|
|
borderColor: Colors.grey,
|
|
|
|
@ -566,9 +568,7 @@ class _VerificationMethodsState extends State<VerificationMethods> {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: RoundedContainer(
|
|
|
|
child: RoundedContainer(
|
|
|
|
backgroundColor: BiometricType.fingerprint.index == 1
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
? Colors.white
|
|
|
|
|
|
|
|
: Colors.white.withOpacity(.7),
|
|
|
|
|
|
|
|
borderColor: Colors.grey,
|
|
|
|
borderColor: Colors.grey,
|
|
|
|
showBorder: true,
|
|
|
|
showBorder: true,
|
|
|
|
child: Padding(
|
|
|
|
child: Padding(
|
|
|
|
@ -756,11 +756,11 @@ class _VerificationMethodsState extends State<VerificationMethods> {
|
|
|
|
getDocProfiles(clinic, authProv);
|
|
|
|
getDocProfiles(clinic, authProv);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
//changeLoadingStata(false);
|
|
|
|
Navigator.pop(context);
|
|
|
|
helpers.showErrorToast(res['ErrorEndUserMessage']);
|
|
|
|
helpers.showErrorToast(res['ErrorEndUserMessage']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catchError((err) {
|
|
|
|
}).catchError((err) {
|
|
|
|
//changeLoadingStata(false);
|
|
|
|
Navigator.pop(context);
|
|
|
|
helpers.showErrorToast(err);
|
|
|
|
helpers.showErrorToast(err);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|