fix: erro na validação de biometria quando o usuário fechava o modal de leitura biométrica
This commit is contained in:
parent
568df2830f
commit
786f7df7dd
|
@ -324,8 +324,9 @@ class _QrCodePageWidgetState extends State<QrCodePageWidget> with TickerProvider
|
||||||
Future<void> _showBiometricsAuth(BuildContext context) async {
|
Future<void> _showBiometricsAuth(BuildContext context) async {
|
||||||
await BiometricHelper.checkBiometrics()
|
await BiometricHelper.checkBiometrics()
|
||||||
.then((value) async => await BiometricHelper.authenticateBiometric().then((value) async {
|
.then((value) async => await BiometricHelper.authenticateBiometric().then((value) async {
|
||||||
final key =
|
if (value == false) throw Exception('Biometric authentication failed');
|
||||||
await StorageHelper().get(SecureStorageKey.fingerprintPass.value, Storage.SecureStorage) ?? '';
|
final key = await StorageHelper().get(SecureStorageKey.fingerprintPass.value, Storage.SecureStorage);
|
||||||
|
if (key == null || key.isEmpty) throw Exception('No key found');
|
||||||
safeSetState(() {
|
safeSetState(() {
|
||||||
if (animationsMap['barcodeOnActionTriggerAnimation'] != null) {
|
if (animationsMap['barcodeOnActionTriggerAnimation'] != null) {
|
||||||
animationsMap['barcodeOnActionTriggerAnimation']!.controller.stop();
|
animationsMap['barcodeOnActionTriggerAnimation']!.controller.stop();
|
||||||
|
|
Loading…
Reference in New Issue