levee 1.0.0+1
levee: ^1.0.0+1 copied to clipboard
A lean, backend-agnostic pagination engine for Flutter with cache-first support, filtering, sorting, and retry policies.
1.0.0+1 #
- New: Documentation updates for 1.0.0 release, including README and API docs
1.0.0 #
Stable Release
- New:
MergeModeenum withappend(default) andreplaceByKeystrategiesreplaceByKeyuses akeySelectorto replace existing items by key instead of duplicating- O(n) merge performance using Map lookups
- New:
mergeModeandkeySelectorparameters onPaginator - Changed:
insertItemparameter renamed frompositiontoindex - Fixed:
LeveeCollectionViewnow properly handles paginator swap viadidUpdateWidget - Fixed:
LeveeCollectionViewwraps non-scrollable states (loading,error,empty) inSingleChildScrollViewsoRefreshIndicatorworks correctly - Fixed:
LeveeCollectionViewshows loading indicator on initialidlestate instead of an empty list - Improved: Added
isLoadinggetter toPageStatefor convenience - Improved: Expanded test coverage (107 tests)
- Updated: README with MergeMode documentation, mutation API examples, and clarification of scope
0.6.0 #
Breaking Change
- BREAKING:
LeveeBuildernow requires both generic type parameters<T, K>(previously only<T>)- Before:
LeveeBuilder<Post>(...) - After:
LeveeBuilder<Post, int>(...) - This ensures full type safety and consistency with
Paginator<T, K>
- Before:
Features
- Added list mutation methods:
updateItem,removeItem,insertItem - Improved API: Fixed
RetryPolicyconfiguration in documentation - Enhanced test coverage (77 tests)
0.5.5 #
Feature Update
- Added list mutation methods:
updateItem,removeItem,insertItem - Improved API: Fixed
RetryPolicyconfiguration in documentation - Enhanced test coverage (77 tests, +10 mutation tests)
0.5.0 #
Initial Release
Core Features:
- Generic page key support (
int,String,DocumentSnapshot, custom types) - Four cache policies: CacheFirst, NetworkFirst, CacheOnly, NetworkOnly
- Exponential backoff retry logic with configurable attempts
- Advanced filtering system with 13+ operations
- Deterministic cache keys based on query parameters
- Headless
LeveeBuilderwidget for custom UI - Full-featured
LeveeCollectionViewwith infinite scroll and pull-to-refresh - In-memory cache store with TTL support
- Zero external dependencies (dependency-free core)
- Comprehensive test coverage (67 tests)