valtlfelipe / statuscenter

An app where you can manage your statuspage.io page with ease and on the go built with flutter
Apache License 2.0
22 stars 3 forks source link

Incidents list pagination #2

Open valtlfelipe opened 3 years ago

valtlfelipe commented 3 years ago

Add pagination to incidents and maintenances lists. Statuspage API doc: https://developer.statuspage.io/#operation/getPagesPageIdIncidents

navinkumar-k-015 commented 3 years ago

I added pagination test2

navinkumar-k-015 commented 3 years ago

but I ran into a problem whenever I refresh, the old list remains and a new whole list gets added below it.

navinkumar-k-015 commented 3 years ago

test3

valtlfelipe commented 3 years ago

How are you querying the API? Because there is a limit and a page property. The limit should be a fixed value, the page should only incremente for each new page, and the API will return only new data, which you then push to the current array of this view.

navinkumar-k-015 commented 3 years ago

yeah I am using that only '

navinkumar-k-015 commented 3 years ago

I will create a pull a pull request to show

valtlfelipe commented 3 years ago

Could you please open a draft pull request, so I can have a look and help you better.