pagination_manager
1.1.1, released 4 weeks ago by an unverified publisher
A Flutter library for managing paginated data and infinite scrolling lists.
WASM-ready
What it does
Provides state management and UI widgets for handling paginated data, infinite scrolling, pull-to-refresh, and built-in search functionality with debouncing.
AI-written summary of version 1.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to implement infinite scrolling lists with pagination in Flutter.
- You want built-in search functionality with debouncing combined with pagination.
- You want to minimize boilerplate code for handling loading, error, and empty states in paginated lists.
Skip it when
- You are not using a list or grid-based pagination workflow.
- You require a complex custom caching layer that doesn't fit standard repository interfaces.
Strengths
- Built-in support for Bloc/Cubit and custom state management solutions.
- Includes features like lazy loading, pull-to-refresh, and intelligent search debouncing.
- Provides high-level ready-to-use widgets like PaginatedManagerList.
Weaknesses
- Relies on a specific repository interface structure for implementation.
- Limited documentation outside of the provided README examples.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 3
Requires adding the dependency and implementing the PaginatedRepository interface.
final paginationManager = PaginationManager<MyData>(
repository: MyDataRepository(),
limitPerPage: 20,
);
PaginatedManagerList<MyData>(
paginationManager: paginationManager,
itemBuilder: (context, index, items) {
final item = items[index];
return ListTile(
title: Text(item.title),
);
},
);Works with
Packages commonly used together with pagination_manager: ones it builds on, ones built on it, and its own family.
- freezed_annotationpagination_manager depends on itAnnotations for the freezed code-generator.
- freezedpagination_manager depends on itCode generation for immutable classes, tagged unions, and cloning without boilerplate.
- flutter_blocpagination_manager depends on itFlutter widgets to easily integrate blocs and cubits for state management.