fix: search stuck at loading state (#1676)

This commit is contained in:
Ashil 2024-01-24 13:02:12 +05:30 committed by GitHub
commit c120f9de97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -201,7 +201,7 @@ class SearchWidgetState extends State<SearchWidget> {
String query,
) {
int resultCount = 0;
final maxResultCount = _isYearValid(query) ? 12 : 11;
final maxResultCount = _isYearValid(query) ? 11 : 10;
final streamController = StreamController<List<SearchResult>>();
if (query.isEmpty) {