paging_plus 0.0.1-alpha.1 copy "paging_plus: ^0.0.1-alpha.1" to clipboard
paging_plus: ^0.0.1-alpha.1 copied to clipboard

Lightweight and intuitive package for pagination and paging management. Easy-to-use utilities for handling page numbers, item counts, and load more functionality in Flutter and Dart applications.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.0.1-alpha.1 - 2025-11-02 #

Added #

  • Initial alpha release of the paging_plus package
  • Page class for representing a single page in a paginated dataset
    • Constructor: Page(pageNumber, count, remainingsCount)
    • Properties: pageNumber, count, remainingsCount, hasRemaining, pageSize, currentTotalCount, expectedTotalCount
    • Factory method: Page.latestPage(itemCount, pageSize) - creates the latest page based on item count
    • Static method: Page.getPages(itemCount, pageSize) - generates all pages for a dataset
  • Paging class for intelligent pagination request calculation
    • Constructor: Paging(pageNumber, pageSize, shouldHasDuplicates)
    • Factory method: Paging.next() with optimization options
    • Support for optimized pagination to minimize redundant data fetching
    • GCD-based algorithm for efficient page size calculation
  • Built on Equatable for easy comparison and testing
  • Comprehensive dartdoc documentation for all classes and methods
  • Detailed README.md with:
    • Installation instructions
    • Usage examples for basic and advanced scenarios
    • Practical examples (infinite scroll, REST API pagination, Flutter ListView)
    • Complete API reference
    • Explanation of pagination optimization
  • Example code demonstrating real-world use cases
  • Comprehensive unit tests covering all features

Features #

  • ๐Ÿ“„ Calculate detailed page information from item counts
  • ๐Ÿ”„ Intelligently determine the next page to fetch
  • โšก Minimize redundant data fetching with optimized pagination
  • ๐Ÿ“Š Built-in support for "load more" functionality
  • ๐ŸŽฏ Type safe with null safety support
  • ๐Ÿ”— Built on Equatable for easy comparison
  • โšก Lightweight with minimal dependencies
  • ๐Ÿงช Comprehensive test coverage
3
likes
0
points
15
downloads

Publisher

verified publisherbalsm.health

Weekly Downloads

Lightweight and intuitive package for pagination and paging management. Easy-to-use utilities for handling page numbers, item counts, and load more functionality in Flutter and Dart applications.

Repository (GitHub)
View/report issues

Topics

#page #paging #pagination #flutter #loadmore

License

unknown (license)

Dependencies

equatable

More

Packages that depend on paging_plus