fix: fix type error in explore_service
MODIFY
lib/src/common/explore_service.dart
lib/src/common/explore_service.dart
@@ -61,7 +61,7 @@ class ExploreService extends Service {
var description = page.querySelector(".collection-description");
// TODO: This is most likely wrong
- showcase.description = description;
+ showcase.description = description.text;
showcase.lastUpdated = lastUpdated;
showcase.title = title;
showcase.items = [];

MODIFY
lib/src/common/util/pagination.dart
lib/src/common/util/pagination.dart
@@ -57,7 +57,7 @@ class PaginationHelper {
} while (true);
}
- Stream jsonObjects(String method, String path,
+ Stream<T> jsonObjects<T>(String method, String path,
{int pages,
Map<String, String> headers,
Map<String, dynamic> params,
@@ -79,7 +79,7 @@ class PaginationHelper {
var json = jsonDecode(response.body) as List;
for (var item in json) {
- yield item;
+ yield item as T;
}
}
}

fix: fix type error in explore_service