flutter_network_client 1.0.1
flutter_network_client: ^1.0.1 copied to clipboard
Advanced HTTP client for Flutter with authentication, retry logic, and clean architecture.
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.
1.0.1 - 2024-01-23 #
Fixed #
- Fixed lint issues and code formatting
- Replaced print statements with logger in examples
- Fixed unnecessary non-null assertions
- Updated documentation and examples
- Fixed .gitignore to include test files
Improved #
- Enhanced API documentation with comprehensive dartdoc comments
- Added comprehensive examples for all features
- Improved error handling examples
1.0.0 2024-01-XX #
Added #
- Advanced HTTP client with support for all HTTP methods (GET, POST, PUT, DELETE, PATCH, HEAD)
- Automatic retry logic with exponential backoff
- Comprehensive error handling with specific exception types
- Authentication and token management system
- Automatic token refresh mechanism
- Secure token storage using SharedPreferences
- Request and response logging with configurable levels
- Performance monitoring and metrics
- Clean architecture implementation with domain-driven design
- Repository pattern with clear separation of concerns
- Use cases for business logic encapsulation
- Network utilities for common operations (pagination, search, filtering)
- Extensive configuration options
- Connection pooling and timeout management
- Network connectivity detection
- Response transformation capabilities
- Comprehensive test coverage
- Detailed documentation and examples
Features #
- Core Network Client: Full-featured HTTP client with retry logic
- Authentication System: Complete auth flow with token management
- Error Handling: Specific exceptions for different HTTP status codes
- Performance Monitoring: Request duration tracking and categorization
- Clean Architecture: Domain, data, and core layers with proper separation
- Developer Tools: Extensive logging and debugging capabilities
- Utilities: Helper functions for common network operations
- Customization: Highly configurable with sensible defaults
Dependencies #
http: ^1.1.0- HTTP clientlogger: ^2.0.1- Logging functionalityshared_preferences: ^2.2.2- Local storage for tokens
Breaking Changes #
- None (initial release)
Migration Guide #
- This is the initial release, no migration needed