You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the above code. The first 2 pages load perfectly. But it shows the load more icon for the 3rd page but does not display the data. However, the API returns the data, I checked the api response.
Issue #2: The code works fine with http.get as it is shown in the example. But with .post it doesn't display the data.
Issue #1:
PagewiseGridView.count(
pageSize: pageSize,
primary: true,
shrinkWrap: true,
crossAxisCount: 2,
childAspectRatio: 1,
padding: const EdgeInsets.only( top: 5.0),
itemBuilder: this._getStructuredGridCell,
pageFuture: (pageIndex) async{
return BackendService.getImages( pageIndex * pageSize, pageSize, merchantId, json.encode(categories), searchString );
}
Using the above code. The first 2 pages load perfectly. But it shows the load more icon for the 3rd page but does not display the data. However, the API returns the data, I checked the api response.
Issue #2: The code works fine with http.get as it is shown in the example. But with .post it doesn't display the data.
http.post( requestUrl, body: { 'blah': blah } ).then( (http.Response response){
print(response.body);
return ProductModel.fromJsonList(json.decode(response.body);
});
Although, the api returns the data. But the itemBuilder don't get called.
I'll appreciate your quick reply.
The text was updated successfully, but these errors were encountered: