Pagination
Pagination is a customised widget that helps to control the pagination for more number of records in our application.
Features
limit
: limit
is the maximum number of items that will be returned for a single request. In this case, it is the page size.
offSet
: offSet
is the starting point of the page. For eg. (1 is the offset and 10 is the limit in 1-10
)
totalCount
: totalCount
is the total number of records available.
callBack
: callBack
is the function called on change of page limit or on moving to next page / previous page.
Rows Per Page
: It is same as the limit
, We can change the Rows Per Page
by selecting the limit from drop down
Widgets used from Flutter Material Library
SL No | Widgets | Description |
---|---|---|
1 |
| Drop Down |
2 |
| Rows per page drop down options |
3 |
| controls the function executed on tap of left arrow icon / right arrow icon |
Files Path :
Primary Files : https://github.com/misdwss/punjab-mgramseva/blob/master/frontend/mgramseva/lib/widgets/pagination.dart