Skip to content

Pagination

Page navigation controls for lists and tables.

Installation

bash
flutter_studio add pagination
bash
flutter pub add flutter_studio

Usage

dart
CustomPagination(
  currentPage: currentPage,
  totalPages: 10,
  onPageChanged: (page) {
    setState(() {
      currentPage = page;
    });
  },
)

API Reference

Properties

PropertyTypeDefaultDescription
currentPageintrequiredCurrent page number
totalPagesintrequiredTotal number of pages