Skip to content

Commit

Permalink
Add additional example to new customisations in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
WieFel committed Sep 29, 2023
1 parent 65244fc commit c582cbc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -100,6 +100,8 @@ NumberPaginator(
// show/hide the prev/next buttons
showPrevButton: true,
showNextButton: false, // defaults to true
// custom content of the prev/next buttons, maintains their behavior
nextButtonContent: Icon(Icons.arrow_right_alt),
// custom prev/next buttons using builder (ignored if showPrevButton/showNextButton is false)
prevButtonBuilder: (context) => TextButton(
onPressed: _controller.currentPage > 0 ? () => _controller.prev() : null, // _controller must be passed to NumberPaginator
Expand Down

0 comments on commit c582cbc

Please sign in to comment.