Builds a page-number widget from the current page and total count.
typedef PageNumberBuilder = Widget Function(int page, int pagesCount);