1

I have to add local authentication to the flutter app. Found great solutions local_auth which is easy to integrate.

authenticated = await auth.authenticate(
          localizedReason: 'Let OS determine authentication method',
          useErrorDialogs: true,
          stickyAuth: true,
          biometricOnly: false,

      );

Everything works cool, But the authentication asks only for fingerprint.

In my phone i have (face id, fingerprint, pattern) mostly i use pattern because Fingerprint works sometimes, sometimes not, maybe my phone was damaged or i don't know.

But i wanted to have an option to decide between pattern and fingerprint. Is it possible? if i turn off fingerprint then auth_local asks for pattern, and if it would be the end user, he won't get it, he simply won't be able to pass the authentication.

If it possible i would like to turn off biometric leaving only (pin,pattern,password) lite security, ideally to select between pattern or fingerprint.

Is there any solution, this makes to refuse from local_auth, Please Advice.

2
  • you can use https://pub.dev/packages/flutter_lock_screen
    – Ruchit
    Oct 15, 2021 at 10:22
  • Hi @Tologon , Did you find any solution?
    – abdulec90
    Feb 9, 2022 at 14:18

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.