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 91d2e80 commit b80896fCopy full SHA for b80896f
lib/pages/search/controller.dart
@@ -32,7 +32,6 @@ class SearchPageController extends GetxController {
32
33
Future<void> getResult(String key) async {
34
final futures = <Future>[];
35
-
36
for (var i = 0; i < searchResultList.length; i++) {
37
final element = searchResultList[i];
38
Future<List<ExtensionListItem>> resultFuture;
@@ -49,7 +48,7 @@ class SearchPageController extends GetxController {
49
48
}
50
element.result = result;
51
if (result.isNotEmpty) {
52
- searchResultList.removeAt(i);
+ searchResultList.remove(element);
53
searchResultList.insert(0, element);
54
55
}).catchError((e) {
0 commit comments