feat: add clear search box fix: close text size

This commit is contained in:
2026-08-04 12:05:46 +02:00
parent 812fcc892b
commit dd5cc1e517
8 changed files with 42 additions and 6 deletions
+12
View File
@@ -411,6 +411,18 @@ class _TabPanelState extends State<_TabPanel> {
decoration: InputDecoration(
hintText: l10n.searchByName,
prefixIcon: Icon(Icons.search_rounded, size: 20),
suffixIcon: _searchQuery.isEmpty
? null
: IconButton(
onPressed: () {
_searchController.clear();
setState(() {
_searchQuery = '';
});
},
icon: const Icon(Icons.clear_rounded),
tooltip: l10n.clearSearch,
),
isDense: true,
),
),