feat: add HTML providers for Realbooru and Paheal, hidden posts screen, and UI/search enhancements

This commit is contained in:
2026-09-03 16:40:37 +03:00
parent 7cccb2cd8d
commit 45faa12133
55 changed files with 4263 additions and 2076 deletions
+2 -2
View File
@@ -14,10 +14,10 @@ class FakeSearchRepository implements SearchRepository {
}
@override
Future<Result<List<SearchHistory>>> recent({int limit = 20}) async {
Future<Result<List<SearchHistory>>> recent({int? limit}) async {
final sorted = [...items]
..sort((a, b) => b.searchedAt.compareTo(a.searchedAt));
return Success(sorted.take(limit).toList());
return Success((limit == null ? sorted : sorted.take(limit)).toList());
}
@override