|
|
|
@ -486,7 +486,11 @@ class _VerificationMethodsState extends State<VerificationMethods> {
|
|
|
|
|
case 3:
|
|
|
|
|
return InkWell(
|
|
|
|
|
onTap: () => {
|
|
|
|
|
authenticateUser(3, BiometricType.fingerprint.index, authProv)
|
|
|
|
|
if (checkIfBiometricAvailable(BiometricType.fingerprint))
|
|
|
|
|
{
|
|
|
|
|
authenticateUser(
|
|
|
|
|
3, BiometricType.fingerprint.index, authProv)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
child: RoundedContainer(
|
|
|
|
|
backgroundColor:
|
|
|
|
@ -518,8 +522,11 @@ class _VerificationMethodsState extends State<VerificationMethods> {
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
return InkWell(
|
|
|
|
|
onTap: () =>
|
|
|
|
|
{authenticateUser(4, BiometricType.face.index, authProv)},
|
|
|
|
|
onTap: () {
|
|
|
|
|
if (checkIfBiometricAvailable(BiometricType.face)) {
|
|
|
|
|
authenticateUser(4, BiometricType.face.index, authProv);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
child: RoundedContainer(
|
|
|
|
|
backgroundColor: checkIfBiometricAvailable(BiometricType.face)
|
|
|
|
|
? Colors.white
|
|
|
|
@ -739,7 +746,9 @@ class _VerificationMethodsState extends State<VerificationMethods> {
|
|
|
|
|
sharedPref.setString(TOKEN, res['AuthenticationTokenID']);
|
|
|
|
|
if (res['List_DoctorProfile'] != null) {
|
|
|
|
|
loginProcessCompleted(res['List_DoctorProfile'][0], authProv);
|
|
|
|
|
sharedPref.setObj(CLINIC_NAME, res['List_DoctorsClinic']);
|
|
|
|
|
} else {
|
|
|
|
|
sharedPref.setObj(CLINIC_NAME, res['List_DoctorsClinic']);
|
|
|
|
|
ClinicModel clinic =
|
|
|
|
|
ClinicModel.fromJson(res['List_DoctorsClinic'][0]);
|
|
|
|
|
getDocProfiles(clinic, authProv);
|
|
|
|
|