Add dedicated Add Contact page with manual public key entry

Replace the Contacts add-contact modal sheet and separate menu shortcuts with a unified Add Contact screen supporting manual type/name/public-key entry, clipboard import (meshcore:// URIs, share tokens, and bare 64-hex keys), discovered contacts, and QR scanning.
This commit is contained in:
zjs81 committed 2026-11-21 14:03:18 -07:00
1 parent 3a93481bdf
commit f45b511bcb
35 files changed
+2315 -188

No files matched your search

+4 -1
View File
@@ -84,6 +84,7 @@ class ReviewFrames {
required Uint8List publicKey,
required int type,
required Uint8List path,
int? pathLen,
required String name,
required int lastAdvertSecs,
required int latitudeE6,
@@ -96,7 +97,9 @@ class ReviewFrames {
writer.writeBytes(publicKey);
writer.writeByte(type);
writer.writeByte(flags);
writer.writeByte(path.length); // one-byte hashes: hop count == byte count
writer.writeByte(
pathLen ?? path.length,
); // one-byte hashes: hop count == byte count
writer.writeBytesPadded(path, maxPathSize);
writer.writeCString(name, maxNameSize);
writer.writeUInt32LE(lastAdvertSecs);