Skip to content
On this page

Pagination

A control for moving between pages of content.

Pagination in FluttyUIPagination in FluttyUI dark theme

Import

import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;

API Reference

The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.

Pagination

const Pagination({
  super.key,
  required this.totalPages,
  required this.page,
  required this.onChanged,
  this.siblingCount = 1,
  this.boundaryCount = 1,
  this.jumpSize,
  this.jumpLabelBuilder,
  this.showControls = true,
  this.showFirstLast = false,
  this.isDisabled = false,
  this.size,
  this.dimension,
  this.spacing,
  this.pageLabelBuilder,
  this.previousLabel = 'Previous page',
  this.nextLabel = 'Next page',
  this.firstLabel = 'First page',
  this.lastLabel = 'Last page',
  this.motion,
});
ParameterTypeRequiredDefault
keyKey?Nonull
totalPagesintYes—
pageintYes—
onChangedValueChanged<int>?Yes—
siblingCountintNo1
boundaryCountintNo1
jumpSizeint?Nonull
jumpLabelBuilderString Function(int targetPage)?Nonull
showControlsboolNotrue
showFirstLastboolNofalse
isDisabledboolNofalse
sizeComponentSize?Nonull
dimensiondouble?Nonull
spacingdouble?Nonull
pageLabelBuilderString Function(int page)?Nonull
previousLabelStringNo'Previous page'
nextLabelStringNo'Next page'
firstLabelStringNo'First page'
lastLabelStringNo'Last page'
motionComponentMotion?Nonull

Application Setup

Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.

Source

lib/src/widgets/navigation/pagination/pagination.dart

This reference is generated from the Pagination declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI