easy_api_provider 2.1.0
easy_api_provider: ^2.1.0 copied to clipboard
A lightweight Flutter HTTP client built on Dio that handles API requests with built-in UI state management. Supports GET, POST, PUT, PATCH, DELETE, file download, automatic error handling, request log [...]
Changelog #
2.1.0 - 2026-06-02 #
Added #
- Full example application demonstrating all package features (CRUD, download, interceptors, auth)
- SEO-friendly pub.dev metadata and documentation
Fixed #
- Static analysis issues resolved
- Removed unused local variables in config tests
Changed #
- Excluded coverage directory from published package
2.0.0 - 2026-06-02 #
Breaking Changes #
- Bumped minimum Dart SDK from
>=2.18.0to>=3.0.0(enables Dart 3 features)
Added #
- Comprehensive test suite: 42 unit/widget tests + integration test suite
AnimatedSwitcherfor smooth cross-fade transitions between UI states inApiProviderUi- Exhaustive
DioExceptionTypeerror handling covering all 8 cases (connectionTimeout, sendTimeout, receiveTimeout, badResponse, cancel, connectionError, badCertificate, unknown)
Fixed #
- Header overwrite bug:
init()no longer overwrites all headers including Authorization whenconfig.headersis provided - URL double-slash bug: request URLs are now correctly constructed without duplicate slashes
- Listener leak in
ApiProviderUi: properly removes listeners indispose()withmountedguard - Circular imports: all internal files now use direct
package:imports instead of barrel file imports
Changed #
- Refactored HTTP methods (
get,post,put,patch,delete,download) to use a shared_requesthelper, eliminating ~400 lines of duplicated try/catch logic - Default widgets (
IdleWidget,LoadingWidget, etc.) now includeValueKeyfor proper widget reconciliation
