Refactor: move Contact UI labels to l10n extension; rename raw getter to typeLabelRaw

This commit is contained in:
Serge Tarkovski
2026-04-25 00:29:20 +03:00
parent 6ae3f612ae
commit b7d0db8d1c
14 changed files with 74 additions and 39 deletions
+3 -3
View File
@@ -72,7 +72,7 @@ class GpxExport {
contact.name,
contact.latitude!,
contact.longitude!,
"Type: ${contact.typeLabel}\nPublic Key: ${contact.publicKeyHex}",
"Type: ${contact.typeLabelRaw}\nPublic Key: ${contact.publicKeyHex}",
url,
);
}
@@ -91,7 +91,7 @@ class GpxExport {
contact.name,
contact.latitude!,
contact.longitude!,
"Type: ${contact.typeLabel}\nPublic Key: ${contact.publicKeyHex}",
"Type: ${contact.typeLabelRaw}\nPublic Key: ${contact.publicKeyHex}",
url,
);
}
@@ -110,7 +110,7 @@ class GpxExport {
contact.name,
contact.latitude ?? 0.0,
contact.longitude ?? 0.0,
"Type: ${contact.typeLabel}\nPublic Key: ${contact.publicKeyHex}",
"Type: ${contact.typeLabelRaw}\nPublic Key: ${contact.publicKeyHex}",
url,
);
}