flutter_core_kit_plus 0.1.0
flutter_core_kit_plus: ^0.1.0 copied to clipboard
A robust, production-ready foundation for Flutter apps combining internet-aware HTTP client, type-safe state management, and reusable UI components.
0.1.0 #
🎉 Major Release - Production-Ready Enhancements #
✨ New Features
Response Caching & Offline Support
- Added
CacheManagerfor HTTP response caching with Hive storage - Configurable cache policies (TTL, max size, offline-first mode)
- Automatic cache fallback when network is unavailable
- Cache management utilities (clear, delete specific entries)
Authentication Support
- Added
AuthTokenManagerfor secure token storage with support for access/refresh tokens - Added
AuthInterceptorfor automatic token injection and refresh - Automatic token refresh on 401 responses with request queuing
- Fallback to memory storage if secure storage is unavailable
Request Cancellation & Management
- Added
CancelTokensupport to all HTTP methods - Automatic request deduplication to prevent duplicate simultaneous requests
- Request tracking and cancellation utilities
- Enhanced
Debouncerwithcancel()method andisActivegetter
Advanced Error Handling
- Complete typed error hierarchy (
NetworkException,NoInternetException,TimeoutException,AuthException,ForbiddenException,NotFoundException,ServerException) - HTTP status code categorization (4xx client errors, 5xx server errors)
RetryInterceptorwith exponential backoff for network errorsErrorMapperutility for user-friendly error messagesisRetryableproperty to intelligently retry failed requests
Enhanced UI Widgets
- Added
AsyncValueBuilderfor full control over AsyncValue UI rendering - Added
AsyncValueSliverWidgetfor sliver-based layouts inCustomScrollView - Added
PaginatedListViewwith infinite scroll and pull-to-refresh - Automatic pagination detection with loading indicators
File Upload/Download
- Added
upload()method with multipart form-data support - Added
download()method with progress tracking - Progress callbacks for uploads and downloads
🔧 Improvements
- Enhanced
RestClientwith cache and retry configuration options - Improved error messages with DioException extension converter
- Better type safety across all components
- Memory-efficient caching with configurable size limits
📦 New Dependencies
dio_cache_interceptor: ^3.5.0- HTTP cachingdio_cache_interceptor_hive_store: ^3.2.2- Hive-based cache storagehive: ^2.2.3- Local storagepath_provider: ^2.1.0- Path utilitiesflutter_secure_storage: ^9.0.0- Secure token storage
⚠️ Breaking Changes
None - All changes are backward compatible. Existing code will continue to work without modifications.
0.0.1 #
- Initial release.
- Added RestClient with Dio and ConnectivityPlus.
- Added AsyncValue for state management.
- Added AsyncValueWidget for standardized UI.
- Added Debouncer and Pagination utilities.