Compare commits
1 Commits
v0.0.2
...
feature/re
| Author | SHA1 | Date | |
|---|---|---|---|
| 91fcd931e8 |
@@ -148,21 +148,27 @@ class _HomeScreenState extends State<HomeScreen> {
|
|||||||
Text(
|
Text(
|
||||||
'Statistiques',
|
'Statistiques',
|
||||||
style: Theme.of(context).textTheme.titleLarge?.copyWith(
|
style: Theme.of(context).textTheme.titleLarge?.copyWith(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 12),
|
const SizedBox(height: 12),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
|
// --- BOUTON SESSIONS (Redirige vers Statistiques) ---
|
||||||
Expanded(
|
Expanded(
|
||||||
child: StatsCard(
|
child: InkWell(
|
||||||
icon: Icons.assessment,
|
onTap: () => _navigateToStatistics(context),
|
||||||
title: 'Sessions',
|
borderRadius: BorderRadius.circular(AppConstants.borderRadius),
|
||||||
value: '${_stats!['totalSessions']}',
|
child: StatsCard(
|
||||||
color: AppTheme.primaryColor,
|
icon: Icons.assessment,
|
||||||
|
title: 'Sessions',
|
||||||
|
value: '${_stats!['totalSessions']}',
|
||||||
|
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: StatsCard(
|
child: InkWell(
|
||||||
icon: Icons.trending_up,
|
onTap: () => _navigateToHistory(context),
|
||||||
title: 'Score Moyen',
|
borderRadius: BorderRadius.circular(AppConstants.borderRadius),
|
||||||
value: (_stats!['averageScore'] as double).toStringAsFixed(1),
|
child: StatsCard(
|
||||||
color: AppTheme.warningColor,
|
icon: Icons.trending_up,
|
||||||
|
title: 'Historique',
|
||||||
|
value: (_stats!['averageScore'] as double).toStringAsFixed(1),
|
||||||
|
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user