Settings: open dedicated pages instead of dialogs

Node Name, Radio Settings, Location, Contact Settings, Privacy and About
now open pages laid out like App Settings. Settings stored on the radio
are sent only on Save, with a warning when leaving unsaved changes.

- Shared SaveToRadioPage / UnsavedChangesGuard / MeshInfoCard
- Node Name byte counter, Location map picker, About links
- Export Data refresh; Settings text and title consistency
- Radio Settings docs corrected against code and firmware
- design.md: settings pages, Save rules, text and app bar rules

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
celsoazevedoandClaude Opus 5.5 committed 2026-11-23 21:21:18 +00:00
1 parent 945b82437f
commit fc7bbe9e02
66 files changed
+7011 -3749

No files matched your search

+35 -26
View File
@@ -119,6 +119,40 @@ class GpxExport {
}
}
/// The contacts added so far, in export order.
@visibleForTesting
List<ContactExport> get contacts => List.unmodifiable(_contacts);
/// The GPX document for the added contacts.
@visibleForTesting
String buildGpx(String name, String description) {
final gpx = Gpx()
..version = '1.1'
..creator = 'meshcore-open exporter'
..metadata = Metadata(
name: name,
desc: description,
time: DateTime.now().toUtc(),
);
gpx.wpts = _contacts
.map(
(c) => Wpt(
lat: c.lat,
lon: c.lon,
ele: c.ele,
name: c.name,
desc: c.desc,
extensions: {
"meshcore": {"url": c.url},
},
),
)
.toList();
return GpxWriter().asString(gpx, pretty: true);
}
Future<int> exportGPX(
String name,
String description,
@@ -137,32 +171,7 @@ class GpxExport {
}
try {
// 1. Build GPX content (your existing logic – unchanged here)
final gpx = Gpx()
..version = '1.1'
..creator = 'meshcore-open exporter'
..metadata = Metadata(
name: name,
desc: description,
time: DateTime.now().toUtc(),
);
gpx.wpts = _contacts
.map(
(c) => Wpt(
lat: c.lat,
lon: c.lon,
ele: c.ele,
name: c.name,
desc: c.desc,
extensions: {
"meshcore": {"url": c.url},
},
),
)
.toList();
final xml = GpxWriter().asString(gpx, pretty: true);
final xml = buildGpx(name, description);
// 2. Save to file
final timestamp = DateTime.now()