mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-26 22:03:55 +03:00
Solve errors
This commit is contained in:
parent
75197726ce
commit
ed7f99b877
@ -17,10 +17,8 @@
|
||||
import 'dart:typed_data';
|
||||
import 'dart:convert';
|
||||
import 'package:base32/base32.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
import 'package:yubico_authenticator/app/logging.dart';
|
||||
|
||||
import '../core/models.dart';
|
||||
|
||||
@ -33,8 +31,6 @@ const defaultCounter = 0;
|
||||
const defaultOathType = OathType.totp;
|
||||
const defaultHashAlgorithm = HashAlgorithm.sha1;
|
||||
|
||||
final _log = Logger('oath.models');
|
||||
|
||||
enum HashAlgorithm {
|
||||
@JsonValue(0x01)
|
||||
sha1('SHA-1'),
|
||||
|
@ -102,7 +102,8 @@ Widget oathBuildActions(
|
||||
if (qrScanner != null) {
|
||||
final otpauth = await qrScanner.scanQr();
|
||||
if (otpauth == null) {
|
||||
showMessage(context, l10n.l_qr_not_found);
|
||||
await ref.read(withContextProvider)((context) async =>
|
||||
showMessage(context, l10n.l_qr_not_found));
|
||||
} else {
|
||||
String s = 'otpauth-migration';
|
||||
if (otpauth.contains(s)) {
|
||||
@ -131,7 +132,8 @@ Widget oathBuildActions(
|
||||
}
|
||||
}
|
||||
}
|
||||
Navigator.of(context).pop();
|
||||
await ref.read(withContextProvider)(
|
||||
(context) async => Navigator.of(context).pop());
|
||||
}),
|
||||
]),
|
||||
ActionListSection(l10n.s_manage, children: [
|
||||
|
Loading…
Reference in New Issue
Block a user