From eee63841482b71ee37e01c024d0e4146f1f9317e Mon Sep 17 00:00:00 2001 From: gitea Date: Fri, 2 Jan 2026 20:07:24 +0100 Subject: [PATCH] last --- lib/screens/deck_overview_screen.dart | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/lib/screens/deck_overview_screen.dart b/lib/screens/deck_overview_screen.dart index 78a900a..7e8f4a1 100644 --- a/lib/screens/deck_overview_screen.dart +++ b/lib/screens/deck_overview_screen.dart @@ -369,6 +369,42 @@ class _DeckOverviewScreenState extends State { ), ], ), + const SizedBox(height: 16), + // Progress bar + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text( + 'Progress', + style: Theme.of(context).textTheme.bodySmall?.copyWith( + color: Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.7), + ), + ), + Text( + '${knownPercentage.toStringAsFixed(1)}%', + style: Theme.of(context).textTheme.bodySmall?.copyWith( + fontWeight: FontWeight.bold, + ), + ), + ], + ), + const SizedBox(height: 8), + ClipRRect( + borderRadius: BorderRadius.circular(8), + child: LinearProgressIndicator( + value: knownPercentage / 100.0, + minHeight: 12, + backgroundColor: Theme.of(context).colorScheme.surfaceContainerHighest, + valueColor: AlwaysStoppedAnimation( + Theme.of(context).colorScheme.primary, + ), + ), + ), + ], + ), if (trendText != null) ...[ const SizedBox(height: 12), Text(