Datatable pagination issues

Widgets & Design

Hi all,

I've got a Datatable that uses a page state content (from an API call) to show the content. The API call fetches 5 elements at a time. The response has the following content:

{
    "count": 9,
    "next": "http://URL/foo/?limit=5&offset=5",
    "previous": null,
    "results": [
        {...},
        {...},
        {...},
        {...},
        {...},
    ]
}

I can't figure out why the pagination buttons don't show the correct values (always 1-5 of 5) when in this case it should be 1-2 of 2. Also, and this could be a side effect of the first issue, why is the next button disabled?

What have you tried so far?

I've tried setting "Number of Rows" in the "Paginated Fata Table Properties" to the number of total elements in the response (9).

Did you check FlutterFlow's Documentation for this topic?
No
1
4 replies