Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
pbarbenheim committed Jan 8, 2025
1 parent 4848871 commit 19355a6
Show file tree
Hide file tree
Showing 5 changed files with 311 additions and 362 deletions.
128 changes: 0 additions & 128 deletions CODE_OF_CONDUCT.md

This file was deleted.

16 changes: 8 additions & 8 deletions lib/repository/repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class Repository {
final privateKey = await OpenPGP.decryptPrivateKey(armored, password);
final DateTime date = DateTime.now();
final signature =
await OpenPGP.signDetached(message, [privateKey], date: date);
OpenPGP.signDetachedCleartext(message, [privateKey], time: date);
return (signature.armor(), date);
}

Expand All @@ -256,12 +256,12 @@ class Repository {
(message) async => await OpenPGP.generateKey(
[userId],
password,
type: KeyGenerationType.rsa,
rsaKeySize: RSAKeySize.s4096,
type: KeyType.rsa,
rsaKeySize: RSAKeySize.ultraHigh,
),
null);

final publicArmored = privateKey.toPublic.armor();
final publicArmored = privateKey.publicKey.armor();
final privateArmored = privateKey.armor();

final pref = prefs;
Expand All @@ -285,7 +285,7 @@ class Repository {
userId: userId,
trusting: trusting,
database: _database,
key: privateKey.toPublic,
key: PublicKey(privateKey.publicKey.packetList),
);
}

Expand Down Expand Up @@ -784,10 +784,10 @@ class Signatur {
eintrag,
signature,
[publicKey],
date: signedAt,
signedAt,
);
for (var verification in msg.verifications) {
if (!verification.verified) {
for (var verification in msg) {
if (!verification.isVerified) {
return false;
}
}
Expand Down
12 changes: 6 additions & 6 deletions lib/ui/screens/dienstbuch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ class _AddDienstbuchEintragFormState
),
const Padding(padding: EdgeInsets.only(top: 12)),
DropdownSearch<Kategorie>(
items: kategorien,
items: (filter, loadProps) => kategorien,
compareFn: (item1, item2) => item1.id == item2.id,
itemAsString: (item) => item.name,
filterFn: (item, filter) => item.name.contains(filter),
Expand All @@ -410,16 +410,16 @@ class _AddDienstbuchEintragFormState
_kategorie = value;
});
},
dropdownDecoratorProps: const DropDownDecoratorProps(
dropdownSearchDecoration: InputDecoration(
decoratorProps: const DropDownDecoratorProps(
decoration: InputDecoration(
labelText: "Kategorie",
border: OutlineInputBorder(),
),
),
),
const Padding(padding: EdgeInsets.only(top: 12)),
DropdownSearch<Betreuer>.multiSelection(
items: betreuer,
items: (filter, loadProps) => betreuer,
compareFn: (item1, item2) => item1.id == item2.id,
itemAsString: (item) => item.name,
filterFn: (item, filter) => item.name.contains(filter),
Expand Down Expand Up @@ -454,8 +454,8 @@ class _AddDienstbuchEintragFormState
autofocus: true,
),
),
dropdownDecoratorProps: const DropDownDecoratorProps(
dropdownSearchDecoration: InputDecoration(
decoratorProps: const DropDownDecoratorProps(
decoration: InputDecoration(
labelText: "Betreuer",
border: OutlineInputBorder(),
),
Expand Down
Loading

0 comments on commit 19355a6

Please sign in to comment.