我正在尝试使用local_auth插件在我的Flutter应用程序中实现指纹认证。但是它会抛出“Platform Exception Error: PlatformException(auth_in_progress, Authentication in progress, null)”。
final LocalAuthentication _localAuth = LocalAuthentication();
bool authenticated = false;
try {
authenticated = await _localAuth.authenticateWithBiometrics(
localizedReason: 'Scan your fingerprint to authenticate',
useErrorDialogs: true,
stickyAuth: false
);
} on PlatformException
catch(e) {
print(e);
}
return authenticated; }