diff --git a/README.md b/README.md index d98541f..2825c5a 100644 --- a/README.md +++ b/README.md @@ -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"), + ], + ), + ), ) ```