feat: 4-tab major redesign: Search, Favorites, History & Collections v2.1.0

This commit is contained in:
2026-09-04 11:12:38 +03:00
parent b33248ef9d
commit c6a9dcb4d5
18 changed files with 2634 additions and 403 deletions
@@ -74,6 +74,14 @@ class SearchController extends AsyncNotifier<SearchState> {
});
}
Future<void> deleteHistory(String historyId) async {
await ref.read(searchServiceProvider).deleteHistoryItem(historyId);
final recent = await _recent();
state = AsyncData(
(state.value ?? const SearchState()).copyWith(recent: recent),
);
}
Future<void> clearHistory() async {
await ref.read(searchServiceProvider).clearHistory();
state = const AsyncData(SearchState());