We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6942ff commit 2b51da9Copy full SHA for 2b51da9
lib/headlines-search/bloc/headlines_search_bloc.dart
@@ -49,7 +49,7 @@ class HeadlinesSearchBloc
49
// emit(HeadlinesSearchLoading(lastSearchTerm: event.searchTerm));
50
try {
51
final response = await _headlinesRepository.readAllByQuery(
52
- {'query': event.searchTerm},
+ {'q': event.searchTerm},
53
limit: _limit,
54
startAfterId: successState.cursor,
55
);
@@ -81,7 +81,7 @@ class HeadlinesSearchBloc
81
); // Show loading for new search
82
83
final response = await _headlinesRepository.readAllByQuery({
84
- 'query': event.searchTerm,
+ 'q': event.searchTerm,
85
}, limit: _limit);
86
emit(
87
HeadlinesSearchSuccess(
0 commit comments