PackageTrack
Sign in Get early access

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 2026
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 45
  1. 1.5.3 25 Mar 2026
    Release notes
    • 🐛 FIX: Resolve LateInitializationError on statusCode and requestOptions in ActionRequestError for non-DioException errors
    • 🗑️ REMOVED: Drop unused json dependency from example app (incompatible with current Dart SDK)
    Open source →
  2. 1.5.2 02 Aug 2025
    Release notes
    • 🔧 ENHANCED: Replace ApiInterceptor with Interceptor for consistency
    Open source →
  3. 1.5.1 02 Aug 2025
    Release notes
    • 🐛 FIX: Integrate path_provider_foundation and disable ANSI colors on iOS
    • 🐛 FIX: Replace print with debugPrint for improved logging consistency
    • 🔧 ENHANCED: Resolved miscellaneous code formatting inconsistencies across multiple files for cleaner readability and structure
    Open source →
  4. 1.5.0 01 Aug 2025
    Release notes
    • 🎨 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: LogColors utility class with 30+ ANSI color methods and smart detection
    • 📝 NEW: JsonFormatter with 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
    Open source →
  5. 1.4.0 30 Jul 2025
    Release notes
    • 🎉 NEW: Introduced ApiLogLevel enum for granular logging control (none, error, info, debug)
    • NEW: ApiLogLevel.debug - Send logs only to custom onLog callback (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 onLog callbacks work alongside console output
    • 🔧 ENHANCED: ApiLogData includes comprehensive request/response metadata and timing information
    • 📚 DOCS: Added complete logging documentation with file logging, error monitoring, and performance tracking examples
    • 🗑️ DEPRECATED: enableLog parameter deprecated in favor of logLevel (still works for backward compatibility)
    • 🔄 COMPATIBILITY: 100% backward compatible - existing code continues to work unchanged
    Open source →
  6. 1.3.0 29 Jul 2025
    Release notes
    • 🎉 NEW: Unified progress tracking system with ProgressData and ProgressHandler
    • NEW: FileUploadAction<T> for file uploads with progress tracking
    • NEW: Enhanced SimpleApiRequest with .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
    Open source →
  7. 1.2.0 26 Jul 2025
    Release notes
    • 🎉 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: DownloadProgress class with formatted progress reporting
    • NEW: Stream-based progress monitoring for real-time download updates
    • 🔧 ENHANCED: SimpleApiRequest download 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
    Open source →
  8. 1.1.1 25 Jul 2025
    Release notes
    • 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
    Open source →
  9. 1.1.0 25 Jul 2025
    Release notes
    • 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
    Open source →
  10. 1.0.9 17 Jan 2024
    Release notes
    • add withHeader, withHeaders to add action headers in runtime.
    Open source →
  11. 1.0.8 21 Nov 2023
    Release notes
    • change execute return to Either<ActionRequestError?, T?>? may be return null
    Open source →
  12. 1.0.7 12 Nov 2023
    Release notes
    • add whereQuery, whereMapQuery to build query builder
    • add where, whereMap to request data
    Open source →
  13. 1.0.6 07 Nov 2023
    Release notes
    • print form data in log
    Open source →
  14. 1.0.5 07 Nov 2023
    Release notes
    • fix request action if token is null
    Open source →
  15. 1.0.4 16 Oct 2023
    Release notes
    • fix Unsupported operation: Cannot modify unmodifiable map
    Open source →
  16. 1.0.3 15 Oct 2023
    Release notes
    • add where to Query Builder
    Open source →
  17. 1.0.2 10 Oct 2023
    Release notes
    • add disableGlobalOnError to disable global error tracking
    Open source →
  18. 1.0.1 04 Sep 2023
    Release notes
    • remove api error from ApiRequestAction
    Open source →
  19. 1.0.0 31 Aug 2023
    Release notes
    • upgrade dependencies
    Open source →
  20. 1.0.0-pre-8 13 Apr 2023 pre-release
    Release notes

    [MOD]: modify action events

    Open source →
  21. 1.0.0-pre-7 19 Feb 2023 pre-release
    Release notes
    • modify ActionRequestError catch and handle errors
    • modify execute to handle response with errors
    • mark Deprecated to run method
    • mark Deprecated to ApiRequestException method
    • Upgrade dart 2.19 with flutter 3.7
    Open source →
  22. 1.0.0-pre-6 27 Nov 2022 pre-release
    Release notes
    • modify refreshConfig to update config after change
    • modify SimpleApiRequest
    Open source →
  23. 1.0.0-pre-5 03 Oct 2022 pre-release
    Release notes
    • modify default headers to options
    Open source →
  24. 1.0.0-pre-4 26 Sep 2022 pre-release
    Release notes

    [CHANGE]: release new v

    Open source →
    Release notes
    • fix return response when status code not success
    Open source →
  25. 1.0.0-pre-3 30 Aug 2022 pre-release
    Release notes
    • modify run method use Either ApiRequestAction
    • modify ApiRequestException to handle api server errors
    Open source →
  26. 1.0.0-pre-2 26 Sep 2021 pre-release
    Release notes
    • modify listFormat global option in ApiRequestOptions
    Open source →
  27. 1.0.0-pre-1 06 Sep 2021 pre-release
    Release notes
    • modify onError global error handler in ApiRequestOptions
    Open source →
  28. 0.8.5 02 Sep 2021
    Release notes
    • modify ApiRequestError to to dynamic error
    • modify subscribe to call execute or onQueue
    Open source →
  29. 0.8.0 30 Aug 2021
    Release notes

    [MOD]: convert events to getter, setter to access its from any where

    Open source →
    Release notes
    • add ApiRequestPerformance to extract performance report
    • convert events to getter, setter to access its from any where
    Open source →
  30. 0.7.2 24 Aug 2021
    Release notes
    • modify ApiRequestError by use try catch
    Open source →
  31. 0.7.1 24 Aug 2021
    Release notes
    • update documentation
    Open source →
  32. 0.7.0 23 Aug 2021
    Release notes

    [MOD]: modify ApiRequestOptions

    Open source →
    Release notes
    • add ApiRequestAction for simple api request don't need to ApiRequest class
    • rename onChnage to subscribe
    • merge defaultQueryParameters with old instance
    • merge interceptors with old instance
    • add more to ApiRequestOptions:
      • connectionTimeOut
      • interceptors
      • enableLog
    Open source →
  33. 0.5.3 21 Aug 2021
    Release notes
    • fix typing error
    Open source →
  34. 0.5.2 21 Aug 2021
    Release notes
    • modify token type api request options
    Open source →
  35. 0.5.1 20 Aug 2021
    Release notes
    • fix execute return type
    Open source →
  36. 0.5.0 18 Aug 2021
    Release notes

    [MOD]: access stream action onQueue && fix run package in web && use …

    …dio instance && dispose action after success or error

    Open source →
    Release notes
    • you can access stream if action run onQueue
    • fix run package in web
    • use dio instance
    • dispose action after success or error
    Open source →
  37. 0.1.2 16 Aug 2021
    Release notes
    • fix run in mobile
    • reverse support web
    Open source →
  38. 0.1.1 16 Aug 2021
    Release notes
    • fix support web
    Open source →
  39. 0.1.0 15 Aug 2021
    Release notes
       && listen to action `onInit`, `onStart`, `onSuccess`, `onError` && add `ApiRequestError` && add `onChange` to subscribe to stream
    
    Open source →
    Release notes
    • refactor RequestAction
    • add onQueue
    • listen to action onInit, onStart, onSuccess, onError
    • add ApiRequestError
    • add onChange to subscribe to stream
    Open source →
  40. 0.0.6 13 Aug 2021
    Release notes
    • add Token to Header by Interceptors
    Open source →
  41. 0.0.5 12 Aug 2021
    Release notes
    • add contentDataType for request
    • convert ApiRequest to mixin
    Open source →
  42. 0.0.4 11 Aug 2021
    Release notes
    • add dynamic path
    Open source →
  43. 0.0.3 10 Aug 2021
    Release notes
    • improve document
    • add more example
    Open source →
  44. 0.0.3+1 10 Aug 2021
    Release notes
    • update change log
    Open source →
  45. 0.0.2 10 Aug 2021
    Release notes
    • first release for flutter api request as action
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive