mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-02 05:50:34 +03:00
Merge PR #257.
This commit is contained in:
commit
d0b547bc00
@ -54,7 +54,7 @@ class _AndroidOathStateNotifier extends OathStateNotifier {
|
||||
}
|
||||
}
|
||||
}, onError: (err, stackTrace) {
|
||||
state = AsyncValue.error(err, stackTrace: stackTrace);
|
||||
state = AsyncValue.error(err, stackTrace);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ class UsbDeviceNotifier extends StateNotifier<List<UsbYubiKeyNode>> {
|
||||
UsbDeviceNotifier(this._rpc) : super([]);
|
||||
|
||||
void refresh() {
|
||||
_log.debug('Refreshing all USB devics');
|
||||
_log.debug('Refreshing all USB devices');
|
||||
_usbState = -1;
|
||||
_pollDevices();
|
||||
}
|
||||
@ -243,7 +243,7 @@ class CurrentDeviceDataNotifier extends StateNotifier<AsyncValue<YubiKeyData>> {
|
||||
if (info != null) {
|
||||
state = AsyncValue.data(YubiKeyData(dev, dev.name, info));
|
||||
} else {
|
||||
state = const AsyncValue.error('device-inaccessible');
|
||||
state = AsyncValue.error('device-inaccessible', StackTrace.current);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -277,7 +277,7 @@ class CurrentDeviceDataNotifier extends StateNotifier<AsyncValue<YubiKeyData>> {
|
||||
state = AsyncValue.data(YubiKeyData(node, result['data']['name'],
|
||||
DeviceInfo.fromJson(result['data']['info'])));
|
||||
} else {
|
||||
state = AsyncValue.error(result['data']['status']);
|
||||
state = AsyncValue.error(result['data']['status'], StackTrace.current);
|
||||
}
|
||||
}
|
||||
} on RpcError catch (e) {
|
||||
|
@ -225,7 +225,7 @@ packages:
|
||||
name: flutter_riverpod
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.4"
|
||||
version: "2.0.2"
|
||||
flutter_test:
|
||||
dependency: "direct dev"
|
||||
description: flutter
|
||||
@ -462,7 +462,7 @@ packages:
|
||||
name: riverpod
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.3"
|
||||
version: "2.0.2"
|
||||
screen_retriever:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -45,7 +45,7 @@ dependencies:
|
||||
logging: ^1.1.0
|
||||
collection: ^1.16.0
|
||||
shared_preferences: ^2.0.12
|
||||
flutter_riverpod: ^1.0.0
|
||||
flutter_riverpod: ^2.0.2
|
||||
json_annotation: ^4.6.0
|
||||
freezed_annotation: ^2.0.3
|
||||
window_manager: ^0.2.7
|
||||
|
Loading…
Reference in New Issue
Block a user