feat(statistiques): implémentation frontend statistiques de progression (ticket #82)
Lots F1+F2 : écran progression_screen.dart, intégration home/history/navigation, tests associés (193 tests suite complète, 4 échecs préexistants sans rapport confirmés). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@ -16,6 +16,7 @@ final class HistoryListScreen extends StatefulWidget {
|
||||
this.mediaUseCases,
|
||||
this.stepUseCases,
|
||||
this.performanceReferenceUseCase,
|
||||
this.onOpenProgression,
|
||||
super.key,
|
||||
});
|
||||
|
||||
@ -26,6 +27,7 @@ final class HistoryListScreen extends StatefulWidget {
|
||||
final ExercisePerformanceReferenceUseCase? performanceReferenceUseCase;
|
||||
final CloseWorkoutSessionUseCase closeUseCase;
|
||||
final MediaUseCases? mediaUseCases;
|
||||
final VoidCallback? onOpenProgression;
|
||||
|
||||
@override
|
||||
State<HistoryListScreen> createState() => _HistoryListScreenState();
|
||||
@ -43,7 +45,16 @@ final class _HistoryListScreenState extends State<HistoryListScreen> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(title: const Text('Historique')),
|
||||
appBar: AppBar(
|
||||
title: const Text('Historique'),
|
||||
actions: [
|
||||
if (widget.onOpenProgression != null)
|
||||
TextButton(
|
||||
onPressed: widget.onOpenProgression,
|
||||
child: const Text('Progression'),
|
||||
),
|
||||
],
|
||||
),
|
||||
body: FutureBuilder<List<WorkoutHistory>>(
|
||||
future: _histories,
|
||||
builder: (context, snapshot) {
|
||||
|
||||
Reference in New Issue
Block a user