enhanced_pagination_view 1.0.0 copy "enhanced_pagination_view: ^1.0.0" to clipboard
enhanced_pagination_view: ^1.0.0 copied to clipboard

Powerful pagination package with O(1) item updates, dual mode support (infinite scroll + pagination buttons), and comprehensive state management.

1.0.0 - 2025-12-19 #

πŸŽ‰ Initial Release #

Changed #

  • Default PagingConfig.cacheMode is CacheMode.limited (default maxCachedItems stays 500) to prevent unbounded memory growth in infinite scroll.

Improved #

  • PagingController keeps its internal item list growable (safer when fetchers return fixed-length lists).
  • PagingController.loadNextPage() updates the keyβ†’index map incrementally when possible; rebuilds only when cache trimming shifts indices.

Fixed #

  • Example: SnackBars replace the previous one immediately and reliably auto-dismiss.
  • Example: Replaced deprecated withOpacity usage.

Features

  • βœ… Dual Mode Support: Infinite scroll or pagination buttons
  • βœ… O(1) Item Updates: Direct item manipulation using key-based lookup
  • βœ… Comprehensive State Management: 7 states (initial, loading, loaded, loadingMore, error, empty, completed)
  • βœ… Item Management Methods:
    • updateItem(): Update single item without refresh
    • removeItem(): Remove item from list
    • insertItem(): Insert at specific position
    • appendItem(): Add to end of list
  • βœ… Pull-to-Refresh: Built-in refresh functionality
  • βœ… Error Handling: Automatic retry mechanism with custom error widgets
  • βœ… Customizable UI: Custom loaders, empty states, pagination controls
  • βœ… Type Safe: Full generic type support
  • βœ… Performance Optimized: Map-based tracking for O(1) lookups
  • βœ… Well Documented: Comprehensive comments and README

Why This Package?

Solves major limitations of pagination_view:

  • No direct item access ❌ β†’ Direct access βœ…
  • No item updates ❌ β†’ O(1) updates βœ…
  • Limited state management ❌ β†’ 7 states βœ…
  • No pagination mode ❌ β†’ Dual mode βœ…

Technical Details

  • Minimum Flutter SDK: 3.0.0
  • Dart SDK: >=3.0.0 <4.0.0
  • Zero external dependencies (except Flutter)
  • Null-safe
  • Well-tested

Credits #

Built with ❀️ to solve real-world pagination challenges in Flutter apps.

2
likes
0
points
425
downloads

Publisher

verified publisherdevsloom.ca

Weekly Downloads

Powerful pagination package with O(1) item updates, dual mode support (infinite scroll + pagination buttons), and comprehensive state management.

Repository (GitHub)
View/report issues

Topics

#pagination #infinite-scroll #listview #ui #widget

License

unknown (license)

Dependencies

flutter

More

Packages that depend on enhanced_pagination_view