- bouton effacer

- bouton ajouter
+ bouton effacer sur l'image de cible
This commit is contained in:
2026-01-30 20:58:57 +01:00
parent 2f69ff4ecf
commit 972474750f

View File

@@ -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 // Bouton pour passer en mode plein écran d'édition
Positioned( Positioned(
right: 8, right: 8,
@@ -865,27 +877,7 @@ class _AnalysisScreenContentState extends State<_AnalysisScreenContent> {
const SizedBox(height: 12), const SizedBox(height: 12),
], ],
// Manual actions // 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'),
),
),
],
),
], ],
); );
} }