|
|
|
@ -233,11 +233,7 @@ class _VerificationMethodsState extends State<VerificationMethods> {
|
|
|
|
|
Expanded(
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () => {
|
|
|
|
|
authenticateUser(
|
|
|
|
|
3,
|
|
|
|
|
BiometricType
|
|
|
|
|
.face.index,
|
|
|
|
|
authProv)
|
|
|
|
|
authenticateUser(3, true, authProv)
|
|
|
|
|
},
|
|
|
|
|
child: getButton(
|
|
|
|
|
user.logInTypeID,
|
|
|
|
@ -488,8 +484,7 @@ class _VerificationMethodsState extends State<VerificationMethods> {
|
|
|
|
|
onTap: () => {
|
|
|
|
|
if (checkIfBiometricAvailable(BiometricType.fingerprint))
|
|
|
|
|
{
|
|
|
|
|
authenticateUser(
|
|
|
|
|
3, BiometricType.fingerprint.index, authProv)
|
|
|
|
|
authenticateUser(3, true, authProv)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
child: RoundedContainer(
|
|
|
|
@ -524,7 +519,7 @@ class _VerificationMethodsState extends State<VerificationMethods> {
|
|
|
|
|
return InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
if (checkIfBiometricAvailable(BiometricType.face)) {
|
|
|
|
|
authenticateUser(4, BiometricType.face.index, authProv);
|
|
|
|
|
authenticateUser(4, true, authProv);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
child: RoundedContainer(
|
|
|
|
@ -706,7 +701,7 @@ class _VerificationMethodsState extends State<VerificationMethods> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
loginWithFingurePrintFace(type, isActive, authProv) async {
|
|
|
|
|
if (isActive == 1) {
|
|
|
|
|
if (isActive) {
|
|
|
|
|
// this.startBiometricLoginIfAvailable();
|
|
|
|
|
authenticated = await auth.authenticateWithBiometrics(
|
|
|
|
|
localizedReason: 'Scan your fingerprint to authenticate',
|
|
|
|
|