indentation and comments
This commit is contained in:
parent
98ca44743a
commit
c0742295ca
2 changed files with 3 additions and 7 deletions
|
@ -88,8 +88,9 @@ class _SearchSuggestionsWidgetState extends State<SearchSuggestionsWidget> {
|
|||
}
|
||||
|
||||
///This method generates searchResultsWidgets from the queueOfEvents by checking
|
||||
///every 60ms if the queue is empty or not. If the queue is not empty, it
|
||||
///generates the widgets and clears the queue and updates the UI.
|
||||
///every [_surfaceNewResultsInterval] if the queue is empty or not. If the
|
||||
///queue is not empty, it generates the widgets and clears the queue and
|
||||
///updates the UI.
|
||||
void generateResultWidgetsInIntervalsFromQueue() {
|
||||
timer = Timer.periodic(
|
||||
const Duration(milliseconds: _surfaceNewResultsInterval), (timer) {
|
||||
|
|
|
@ -299,9 +299,7 @@ class SearchWidgetState extends State<SearchWidget> {
|
|||
_searchService.getHolidaySearchResults(context, query).then(
|
||||
(holidayResults) {
|
||||
streamController.sink.add(holidayResults);
|
||||
|
||||
resultCount++;
|
||||
|
||||
if (resultCount == maxResultCount) {
|
||||
streamController.close();
|
||||
}
|
||||
|
@ -312,7 +310,6 @@ class SearchWidgetState extends State<SearchWidget> {
|
|||
(fileTypeSearchResults) {
|
||||
streamController.sink.add(fileTypeSearchResults);
|
||||
resultCount++;
|
||||
|
||||
if (resultCount == maxResultCount) {
|
||||
streamController.close();
|
||||
}
|
||||
|
@ -323,7 +320,6 @@ class SearchWidgetState extends State<SearchWidget> {
|
|||
(captionAndDisplayNameResult) {
|
||||
streamController.sink.add(captionAndDisplayNameResult);
|
||||
resultCount++;
|
||||
|
||||
if (resultCount == maxResultCount) {
|
||||
streamController.close();
|
||||
}
|
||||
|
@ -354,7 +350,6 @@ class SearchWidgetState extends State<SearchWidget> {
|
|||
(collectionResults) {
|
||||
streamController.sink.add(collectionResults);
|
||||
resultCount++;
|
||||
|
||||
if (resultCount == maxResultCount) {
|
||||
streamController.close();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue