Read page as text

NIB / PLAYGROUND

Pagination playground — NibComponents

Try pagination in Flutter. Change a controlled page and make the displayed data follow it.

Open interactive view

Change a controlled page and make the displayed data follow it.

Read the full component guide and API

Public widgets and APIs

  • NibPagination
  • NibPaginationVariant
  • paginationRange

Example Dart code

// Inside State; update the rows alongside currentPage in a real screen.
NibPagination(
  currentPage: page,
  totalPages: 12,
  onPageChanged: (next) => setState(() => page = next),
)

Playground controls

ControlTypeOptions or rangeHelp
Total pagesnumber1.0–30.0
Layoutchoicenumbered, compact
Show first and last buttonstoggle
Disable page changestoggle
Animate active pagetoggle