mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-23 00:57:26 +03:00
api update
This commit is contained in:
parent
e4f6758bd9
commit
68b170c3e2
@ -54,7 +54,7 @@ class _AndroidOathStateNotifier extends OathStateNotifier {
|
||||
}
|
||||
}
|
||||
}, onError: (err, stackTrace) {
|
||||
state = AsyncValue.error(err, stackTrace: stackTrace);
|
||||
state = AsyncValue.error(err, stackTrace);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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