PaginationPlus class

A customizable pagination widget for Flutter that displays page buttons, navigation controls, and optional "rows per page" dropdown.

Supports responsive layouts for mobile, tablet, and desktop.

Inheritance

Constructors

PaginationPlus({Key? key, required int currentPageIndex, required int totalPages, required int totalCount, required int rowsPerPage, required int startIndex, required int endIndex, Color paginationColor = const Color(0xFFF0F0F0), Color secondaryColor = const Color(0xFF704264), Color tableDividerColor = const Color(0xFFE0E0E0), Color greyColor = const Color(0xFFBABEC2), required List<int> availableRowsPerPage, required bool isTablet, required bool isMobile, required ValueChanged<int> onPageChanged, required ValueChanged<int> onRowsPerPageChanged})
Creates a PaginationPlus widget.
const

Properties

availableRowsPerPage List<int>
List of available rows-per-page options for the dropdown.
final
currentPageIndex int
The current active page index (zero-based).
final
endIndex int
Index of the last item displayed on the current page (1-based).
final
greyColor Color
Neutral grey color for borders and dropdown outlines.
final
hashCode int
The hash code for this object.
no setterinherited
isMobile bool
Flag to indicate if the layout is mobile-sized.
final
isTablet bool
Flag to indicate if the layout is tablet-sized.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onPageChanged ValueChanged<int>
Callback triggered when the page is changed.
final
onRowsPerPageChanged ValueChanged<int>
Callback triggered when the rows-per-page selection changes.
final
paginationColor Color
Background color for pagination container.
final
rowsPerPage int
Number of rows displayed per page.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondaryColor Color
Primary accent color (for selected buttons, highlights, etc.).
final
startIndex int
Index of the first item displayed on the current page (1-based).
final
tableDividerColor Color
Divider color for table and pagination borders.
final
totalCount int
Total number of records/items in the dataset.
final
totalPages int
Total number of pages available.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited