Settings actions: messages and radio progress

Every action ends with a short message: Sync Time ("Time sent to the
radio"), Refresh Contacts, Reboot and Delete All Paths. While Refresh
Contacts or Reboot wait for the radio, the row shows a spinner
(MeshNavTile busy) and the app bar the shared progress bar. Delete All
Paths now says it clears the app's path history.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
celsoazevedoandClaude Opus 5.5 committed 2026-11-24 06:35:12 +00:00
1 parent c45424adaa
commit 5b74383d10
46 files changed
+637 -104

No files matched your search

+10 -2
View File
@@ -45,7 +45,11 @@ class MeshProgressAppBarBottom extends StatelessWidget
/// contacts, channels and queued messages, one at a time.
class SyncProgressAppBarBottom extends StatelessWidget
implements PreferredSizeWidget {
const SyncProgressAppBarBottom({super.key});
/// Also shows the bar, moving, while the screen waits for the radio and no
/// sync is running.
final bool busy;
const SyncProgressAppBarBottom({super.key, this.busy = false});
@override
Size get preferredSize => const Size.fromHeight(MeshProgressBar.height);
@@ -54,7 +58,11 @@ class SyncProgressAppBarBottom extends StatelessWidget
Widget build(BuildContext context) {
return Consumer<MeshCoreConnector>(
builder: (context, connector, _) {
final state = _SyncProgressState.fromConnector(connector);
final state =
_SyncProgressState.fromConnector(connector) ??
(busy && connector.isConnected
? const _SyncProgressState(value: null)
: null);
return MeshProgressBar(active: state != null, value: state?.value);
},
);