diff --git a/app/lib/presentation/pages/history_page.dart b/app/lib/presentation/pages/history_page.dart index 2d58784a..0a7986c2 100755 --- a/app/lib/presentation/pages/history_page.dart +++ b/app/lib/presentation/pages/history_page.dart @@ -351,6 +351,27 @@ class _HistoryContentState extends State { child: _buildSectorDropdown(), ), ], + // Bouton réinitialiser les filtres + if (isAdmin && (_searchQuery.isNotEmpty || _selectedMemberId != null || _selectedSectorId != null)) ...[ + const SizedBox(width: 8), + IconButton( + icon: const Icon(Icons.clear, size: 20), + tooltip: 'Réinitialiser les filtres', + onPressed: () { + setState(() { + _searchQuery = ''; + _searchController.clear(); + _selectedMemberId = null; + _selectedSectorId = null; + }); + _applyFilters(); + }, + style: IconButton.styleFrom( + backgroundColor: Colors.grey[200], + padding: const EdgeInsets.all(12), + ), + ), + ], ], ), ),