diff --git a/lib/controllers/food_data.dart b/lib/controllers/food_data.dart index 325b018..ad42c26 100644 --- a/lib/controllers/food_data.dart +++ b/lib/controllers/food_data.dart @@ -40,7 +40,7 @@ class FoodDataController extends GetxController { queryParameters: { 'query': probe, 'dataType': getDataCollections()?.join(','), - 'pageSize': 25, + 'pageSize': 100, 'pageNumber': 1, 'sortBy': 'dataType.keyword', 'sortOrder': 'asc', diff --git a/lib/models/food_data.dart b/lib/models/food_data.dart index 371dd91..4fbc029 100644 --- a/lib/models/food_data.dart +++ b/lib/models/food_data.dart @@ -134,7 +134,7 @@ class FoodSearchCriteria { numberOfResultsPerPage: json["numberOfResultsPerPage"], pageSize: json["pageSize"], requireAllWords: json["requireAllWords"], - foodTypes: List.from( + foodTypes: List.from( json["foodTypes"]?.map((x) => typeValues.map[x]) ?? List.empty()), );