api update

This commit is contained in:
Adam Velebil 2022-10-19 10:12:25 +02:00
parent e4f6758bd9
commit 68b170c3e2
No known key found for this signature in database
GPG Key ID: AC6D6B9D715FC084
4 changed files with 6 additions and 6 deletions

View File

@ -54,7 +54,7 @@ class _AndroidOathStateNotifier extends OathStateNotifier {
}
}
}, onError: (err, stackTrace) {
state = AsyncValue.error(err, stackTrace: stackTrace);
state = AsyncValue.error(err, stackTrace);
});
}

View File

@ -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) {

View File

@ -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:

View File

@ -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