api_request
Action-based HTTP client for Flutter with beautiful colored logging, progress tracking, and comprehensive API request management.
1.5.3
235 downloads/mo
#1195 most downloaded on pub.dev
moh-abdullah-it/api_request
What this package is like to depend on
Last release 5 months ago
25 Mar 2026
Ships unpredictably
gaps range from 8 days to 1.5 years
Nearly every release is documented
notes for 37 of 37 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
45 releases · first in 2021
1 release in the last 12 months
see the full history below
Release timeline
45 releases · Aug 2021 to Mar 2026Releases
latest 45-
1.5.325 Mar 2026Release notes
Open source →- 🐛 FIX: Resolve
LateInitializationErroronstatusCodeandrequestOptionsinActionRequestErrorfor non-DioExceptionerrors - 🗑️ REMOVED: Drop unused
jsondependency from example app (incompatible with current Dart SDK)
- 🐛 FIX: Resolve
-
1.5.202 Aug 2025 -
1.5.102 Aug 2025Release notes
Open source →- 🐛 FIX: Integrate
path_provider_foundationand disable ANSI colors on iOS - 🐛 FIX: Replace
printwithdebugPrintfor improved logging consistency - 🔧 ENHANCED: Resolved miscellaneous code formatting inconsistencies across multiple files for cleaner readability and structure
- 🐛 FIX: Integrate
-
1.5.001 Aug 2025Release notes
Open source →- 🎨 NEW: Complete visual overhaul of API request/response logging with beautiful colored output
- ✨ NEW: JSON syntax highlighting with cyan keys, green strings, yellow numbers, and magenta booleans
- 🌈 NEW: Color-coded HTTP methods (GET=blue, POST=green, DELETE=red, PUT=yellow, PATCH=magenta)
- 📊 NEW: Status code aware coloring (2xx=green, 3xx=yellow, 4xx=red, 5xx=bright red)
- 🎯 NEW: Structured color themes - cyan for requests, green for responses, red for errors
- 🔧 NEW:
LogColorsutility class with 30+ ANSI color methods and smart detection - 📝 NEW:
JsonFormatterwith intelligent key detection and proper indentation - 🔧 ENHANCED: Completely redesigned console output with professional formatting and visual hierarchy
- 🔧 ENHANCED: Better handling of large JSON responses with proper syntax highlighting
- ⚙️ TECHNICAL: Colors automatically disabled in release mode for performance
- ⚙️ TECHNICAL: Graceful fallback to plain text when colors not supported
- 🔄 COMPATIBILITY: 100% backward compatible - existing logging configurations unchanged
-
1.4.030 Jul 2025Release notes
Open source →- 🎉 NEW: Introduced
ApiLogLevelenum for granular logging control (none, error, info, debug) - ✨ NEW:
ApiLogLevel.debug- Send logs only to customonLogcallback (no console output) - ✨ NEW:
ApiLogLevel.error- Log only API errors and exceptions to console - ✨ NEW:
ApiLogLevel.info- Full request/response logging to console (default behavior) - ✨ NEW:
ApiLogLevel.none- Disable all logging completely - 🔧 ENHANCED: Dual logging support - custom
onLogcallbacks work alongside console output - 🔧 ENHANCED:
ApiLogDataincludes comprehensive request/response metadata and timing information - 📚 DOCS: Added complete logging documentation with file logging, error monitoring, and performance tracking examples
- 🗑️ DEPRECATED:
enableLogparameter deprecated in favor oflogLevel(still works for backward compatibility) - 🔄 COMPATIBILITY: 100% backward compatible - existing code continues to work unchanged
- 🎉 NEW: Introduced
-
1.3.029 Jul 2025Release notes
Open source →- 🎉 NEW: Unified progress tracking system with
ProgressDataandProgressHandler - ✨ NEW:
FileUploadAction<T>for file uploads with progress tracking - ✨ NEW: Enhanced
SimpleApiRequestwith.withProgress(),.withUploadProgress(),.withDownloadProgress() - 🔧 ENHANCED: Performance monitoring now includes transfer data and rates
- 🔧 ENHANCED: All request types support progress tracking
- 📚 DOCS: Added comprehensive progress examples and migration guide
- 🔄 COMPATIBILITY: 100% backward compatible
- 🎉 NEW: Unified progress tracking system with
-
1.2.026 Jul 2025Release notes
Open source →- 🎉 NEW: Added comprehensive file download support with
FileDownloadAction - ✨ NEW: Progress tracking with callbacks and reactive streams for file downloads
- ✨ NEW: Cancellation support for download operations using
CancelToken - ✨ NEW:
DownloadProgressclass with formatted progress reporting - ✨ NEW: Stream-based progress monitoring for real-time download updates
- 🔧 ENHANCED:
SimpleApiRequestdownload method already supported file downloads - 📚 DOCS: Updated README with comprehensive file download examples and usage patterns
- 📚 DOCS: Added file download documentation to features and core components sections
- 🎉 NEW: Added comprehensive file download support with
-
1.1.125 Jul 2025Release notes
Open source →- Enhanced comprehensive dartdoc documentation across all library files
- Added detailed class-level documentation for ApiResource with usage examples and comparison guidance
- Added extensive documentation for SimpleApiRequest covering all HTTP methods, factory constructors, and error handling patterns
- Enhanced ApiRequestUtils with complete method documentation and path variable resolution examples
- Improved documentation consistency with cross-references, parameter descriptions, and return value explanations
- Added migration guidance and best practices throughout the codebase
- Enhanced code examples with real-world usage patterns and error handling demonstrations
-
1.1.025 Jul 2025Release notes
Open source →- Completely rewrote README.md with modern structure and comprehensive documentation
- Added professional header with badges and clear feature highlights
- Included step-by-step quick start guide with better code examples
- Added advanced usage patterns for dynamic paths, multi-environment support, and error handling
- Enhanced architecture overview and testing examples
- Added links to example app and comprehensive documentation
- Fixed flutter_lints dependency issue in example app
-
1.0.917 Jan 2024 -
1.0.821 Nov 2023Release notes
Open source →- change execute return to
Either<ActionRequestError?, T?>?may be return null
- change execute return to
-
1.0.712 Nov 2023Release notes
Open source →- add
whereQuery,whereMapQueryto build query builder - add
where,whereMapto request data
- add
-
1.0.607 Nov 2023 -
1.0.507 Nov 2023 -
1.0.416 Oct 2023 -
1.0.315 Oct 2023 -
1.0.210 Oct 2023 -
1.0.104 Sep 2023 -
1.0.031 Aug 2023 -
1.0.0-pre-813 Apr 2023 pre-release -
1.0.0-pre-719 Feb 2023 pre-releaseRelease notes
Open source →- modify
ActionRequestErrorcatch and handle errors - modify
executeto handle response with errors - mark Deprecated to
runmethod - mark Deprecated to
ApiRequestExceptionmethod - Upgrade dart 2.19 with flutter 3.7
- modify
-
1.0.0-pre-627 Nov 2022 pre-releaseRelease notes
Open source →- modify
refreshConfigto update config after change - modify
SimpleApiRequest
- modify
-
1.0.0-pre-503 Oct 2022 pre-release -
1.0.0-pre-426 Sep 2022 pre-release -
1.0.0-pre-330 Aug 2022 pre-releaseRelease notes
Open source →- modify
runmethod use EitherApiRequestAction - modify
ApiRequestExceptionto handle api server errors
- modify
-
1.0.0-pre-226 Sep 2021 pre-release -
1.0.0-pre-106 Sep 2021 pre-release -
0.8.502 Sep 2021Release notes
Open source →- modify
ApiRequestErrorto to dynamic error - modify
subscribeto callexecuteoronQueue
- modify
-
0.8.030 Aug 2021Release notes
Open source →- add
ApiRequestPerformanceto extract performance report - convert events to
getter,setterto access its from any where
- add
-
0.7.224 Aug 2021 -
0.7.124 Aug 2021 -
0.7.023 Aug 2021Release notes
Open source →- add
ApiRequestActionfor simple api request don't need toApiRequestclass - rename
onChnagetosubscribe - merge
defaultQueryParameterswith old instance - merge
interceptorswith old instance - add more to
ApiRequestOptions:- connectionTimeOut
- interceptors
- enableLog
- add
-
0.5.321 Aug 2021 -
0.5.221 Aug 2021 -
0.5.120 Aug 2021 -
0.5.018 Aug 2021Release notes
Open source →[MOD]: access stream action onQueue && fix run package in web && use …
…dio instance && dispose action after success or error
Release notes
Open source →- you can access stream if action run onQueue
- fix run package in web
- use dio instance
- dispose action after success or error
-
0.1.216 Aug 2021 -
0.1.116 Aug 2021 -
0.1.015 Aug 2021Release notes
Open source →&& listen to action `onInit`, `onStart`, `onSuccess`, `onError` && add `ApiRequestError` && add `onChange` to subscribe to streamRelease notes
Open source →- refactor
RequestAction - add
onQueue - listen to action
onInit,onStart,onSuccess,onError - add
ApiRequestError - add
onChangeto subscribe to stream
- refactor
-
0.0.613 Aug 2021 -
0.0.512 Aug 2021 -
0.0.411 Aug 2021 -
0.0.310 Aug 2021 -
0.0.3+110 Aug 2021 -
0.0.210 Aug 2021