Progress bars: one shared 4px top bar in the theme colour

Adds MeshProgressBar and MeshProgressAppBarBottom: 4px, theme progress
colour and track, filling when progress is known, keeping their height
when idle. The sync bar uses them (no more red/blue/green), as do
Repeater "Refresh all", the chess game, chat search and the
line-of-sight map. design.md gets the progress bar rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
celsoazevedoandClaude Opus 5.5 committed 2026-11-24 05:39:40 +00:00
1 parent fe957c2765
commit 0aa867e40e
7 files changed
+112 -48

No files matched your search

+2 -6
View File
@@ -7,6 +7,7 @@ import '../../../theme/mesh_theme.dart';
import '../../../utils/radio_guard.dart';
import '../../../widgets/mesh_nav_tile.dart';
import '../../../widgets/mesh_ui.dart';
import '../../../widgets/sync_progress_overlay.dart';
import '../chess_game.dart';
import '../chess_service.dart';
import 'chess_board.dart';
@@ -106,12 +107,7 @@ class _ChessGameScreenState extends State<ChessGameScreen> {
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
bottom: busy
? const PreferredSize(
preferredSize: Size.fromHeight(3),
child: LinearProgressIndicator(minHeight: 3),
)
: null,
bottom: MeshProgressAppBarBottom(active: busy),
),
body: SafeArea(
child: LayoutBuilder(