Skip to content

Commit

Permalink
Add new features to readme customization examples
Browse files Browse the repository at this point in the history
  • Loading branch information
WieFel committed Sep 29, 2023
1 parent 62470a0 commit b646e1a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,19 @@ NumberPaginator(
buttonUnselectedBackgroundColor: Colors.grey,
buttonSelectedBackgroundColor: Colors.blueGrey,
),
// show/hide the prev/next buttons
showPrevButton: false, // defaults to true
showNextButton: false, // defaults to true
// custom prev/next buttons using builder
prevButtonBuilder: (context) => TextButton(
onPressed: _controller.currentPage > 0 ? () => _controller.prev() : null, // _controller must be passed to NumberPaginator
child: const Row(
children: [
Icon(Icons.chevron_left),
Text("Previous"),
],
),
),
)
```
<p align="center">
Expand Down

0 comments on commit b646e1a

Please sign in to comment.