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