🚸 Increase page size of once query

This commit is contained in:
LittleSheep 2024-08-15 20:13:21 +08:00
parent 403639088f
commit 0b34a4b74b
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ class FoodDataController extends GetxController {
queryParameters: { queryParameters: {
'query': probe, 'query': probe,
'dataType': getDataCollections()?.join(','), 'dataType': getDataCollections()?.join(','),
'pageSize': 25, 'pageSize': 100,
'pageNumber': 1, 'pageNumber': 1,
'sortBy': 'dataType.keyword', 'sortBy': 'dataType.keyword',
'sortOrder': 'asc', 'sortOrder': 'asc',

View File

@ -134,7 +134,7 @@ class FoodSearchCriteria {
numberOfResultsPerPage: json["numberOfResultsPerPage"], numberOfResultsPerPage: json["numberOfResultsPerPage"],
pageSize: json["pageSize"], pageSize: json["pageSize"],
requireAllWords: json["requireAllWords"], requireAllWords: json["requireAllWords"],
foodTypes: List<FoodType>.from( foodTypes: List<FoodType?>.from(
json["foodTypes"]?.map((x) => typeValues.map[x]) ?? List.empty()), json["foodTypes"]?.map((x) => typeValues.map[x]) ?? List.empty()),
); );