1 Commits

Author SHA1 Message Date
91fcd931e8 clickable home screen renamed 2026-02-03 12:16:30 +01:00

View File

@@ -154,7 +154,11 @@ class _HomeScreenState extends State<HomeScreen> {
const SizedBox(height: 12),
Row(
children: [
// --- BOUTON SESSIONS (Redirige vers Statistiques) ---
Expanded(
child: InkWell(
onTap: () => _navigateToStatistics(context),
borderRadius: BorderRadius.circular(AppConstants.borderRadius),
child: StatsCard(
icon: Icons.assessment,
title: 'Sessions',
@@ -162,7 +166,9 @@ class _HomeScreenState extends State<HomeScreen> {
color: AppTheme.primaryColor,
),
),
),
const SizedBox(width: 12),
// Ce bouton reste statique (ou tu peux ajouter une action)
Expanded(
child: StatsCard(
icon: Icons.gps_fixed,
@@ -176,15 +182,21 @@ class _HomeScreenState extends State<HomeScreen> {
const SizedBox(height: 12),
Row(
children: [
// --- BOUTON SCORE MOYEN (Redirige vers Historique) ---
Expanded(
child: InkWell(
onTap: () => _navigateToHistory(context),
borderRadius: BorderRadius.circular(AppConstants.borderRadius),
child: StatsCard(
icon: Icons.trending_up,
title: 'Score Moyen',
title: 'Historique',
value: (_stats!['averageScore'] as double).toStringAsFixed(1),
color: AppTheme.warningColor,
),
),
),
const SizedBox(width: 12),
// Ce bouton reste statique
Expanded(
child: StatsCard(
icon: Icons.emoji_events,