resource_state_builder 0.0.7
resource_state_builder: ^0.0.7 copied to clipboard
A generic implementation of resource states and UI builders for paginated and standard resources.
Changelog #
All notable changes to this project will be documented in this file.
0.0.7 #
Fixed #
- Global Rebuild Optimization: Added the
resourcesSelectorparameter toMultiResourceBuilderto replaceaggregateResources. This allows dynamic tracking of the combined state of all resources without unnecessarily rebuilding the root layout, preserving global state behavior while utilizing high-performance individual slivers.
0.0.6 #
Added #
- Agnostic Selective Rebuilds: Introduced the
selectorBuilderparameter inResourceDefandPaginatedResourceDef. Wrap individual slivers in any native state management selector (likeBlocSelector) to prevent unnecessary full-screen rebuilds. - Flexible Global Aggregation: The
resourceparameter is now optional. Developers can rely solely onselectorBuilderto build high-performance independent sections, bypassing global state aggregation entirely when desired.
0.0.5 #
Added #
- MultiResourceBuilder: Implemented composite architecture with
ResourceDefandPaginatedResourceDeffor robust multi-resource screens. - Resource State: Added new extension methods
toGettingMore()/toPopUpLoading()for easier state transitions. - Pagination Helpers: New data manipulation methods for paginated resources:
appendItems,prependItems,updateWhere,replaceWhere, andinsertAt. - Resource Config: Implemented inheritance/merging for nested
ResourceConfigwidgets, allowing partial overrides. - Paginated Resource Builder: Added support for horizontal scroll direction and grid layouts via
scrollDirectionandgridDelegate.
Fixed #
- ResourceAggregator: Improved logic to use strict (All) resolution for
toAggregate.
0.0.3 #
Added #
- Unified
copyWithDataandcopyWithErrorinto a single, idiomaticcopyWithmethod inResourceExtension. - Comprehensive API documentation in
README.mdfor all extension helpers (ResourceExtension,ResourcePaginatedX, andResourceAggregator). - Detailed code examples for Logic Layer Integration and Advanced Patterns moved to the primary documentation section.