From 972474750fc06309baf44adc2c92dd4e1f5fc7be Mon Sep 17 00:00:00 2001 From: streaper2 Date: Fri, 30 Jan 2026 20:58:57 +0100 Subject: [PATCH] - bouton effacer - bouton ajouter + bouton effacer sur l'image de cible --- lib/features/analysis/analysis_screen.dart | 34 +++++++++------------- 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/lib/features/analysis/analysis_screen.dart b/lib/features/analysis/analysis_screen.dart index 7a2832a..486fa82 100644 --- a/lib/features/analysis/analysis_screen.dart +++ b/lib/features/analysis/analysis_screen.dart @@ -621,6 +621,18 @@ class _AnalysisScreenContentState extends State<_AnalysisScreenContent> { ], ), ), + // Bouton pour effacer les impacts + if (provider.shotCount > 0 && !_isSelectingReferences) + Positioned( + left: 8, + bottom: 8, + child: FloatingActionButton.small( + heroTag: 'clearShots', + onPressed: () => _showClearConfirmation(context, provider), + backgroundColor: Colors.black54, + child: const Icon(Icons.delete, color: Colors.white), + ), + ), // Bouton pour passer en mode plein écran d'édition Positioned( right: 8, @@ -865,27 +877,7 @@ class _AnalysisScreenContentState extends State<_AnalysisScreenContent> { const SizedBox(height: 12), ], // Manual actions - Row( - children: [ - Expanded( - child: OutlinedButton.icon( - onPressed: _isSelectingReferences ? null : () => _showAddShotHint(context), - icon: const Icon(Icons.add_circle_outline), - label: const Text('Ajouter'), - ), - ), - const SizedBox(width: 12), - Expanded( - child: OutlinedButton.icon( - onPressed: provider.shotCount > 0 && !_isSelectingReferences - ? () => _showClearConfirmation(context, provider) - : null, - icon: const Icon(Icons.clear_all), - label: const Text('Effacer'), - ), - ), - ], - ), + ], ); }