PackageTrack
Sign in Get early access

playx_network

playx_network is a Wrapper around Dio that can perform api request with better error handling and easily get the result of any api request.

1.0.0 3.0K downloads/mo #4654 most downloaded on pub.dev playx-flutter/playx_network

What this package is like to depend on

Last release 4 months ago

02 Apr 2026

Ships fairly regularly

a new release about every 2 months

Nearly every release is documented

notes for 22 of 24 stable releases

Nothing withdrawn

no release was ever pulled

3 years old

24 releases · first in 2023

2 releases in the last 12 months

see the full history below

Release timeline

24 releases · Jul 2023 to Apr 2026
2024 2025 2026
Release Pre-release

Releases

latest 24
  1. 1.0.0 02 Apr 2026
    Release notes
    • Nested JSON Key Extraction: Added dataKey parameter to all network requests to extract nested JSON values before parsing.
    • Item-Level Nested Key Extraction: Added itemDataKey to all list-returning requests (getList, postList, etc.) to unwrap each list item (e.g., itemDataKey: 'attributes') before passing it to the mapper.
    • Smart Request Cancellation Manager: Added cancelTag parameter to manage and cancel multiple requests at once with automatic cancelOld support.
    • Mapping Cancellation: Better support for canceling requests during JSON mapping in isolates. Now, when a request is canceled, the mapping process is also canceled to save resources and improve performance.
    Open source →
  2. 0.6.0 17 Nov 2025
    Release notes
    • Updated dependencies to their latest versions.
    • PATCH Request Support: Added new methods (patch and patchList) to easily perform PATCH API requests.
    • Per-Request Error Mapping: You can now pass a custom ErrorMapper to individual API calls for more specific error handling.
    • Granular Logging Control: Added new settings to control exactly what gets printed in the logs (e.g., toggle response data, request headers, etc.).
    • Added dio_smart_retry package to support retrying failed requests with exponential backoff.
    Open source →
  3. 0.5.1 02 Jul 2025
    Release notes
    • Updated dependencies to their latest versions.
    • Enhanced logging errors and exceptions to provide more detailed information.
    Open source →
  4. 0.5.0 01 Jul 2025
    Release notes

    Note: This version contains breaking changes.

    New Features

    • Export DioClient: A simple and customizable HTTP client based on Dio is now available directly from the playx_network package.

    Improvements

    Logger Overhaul

    • Replaced pretty_dio_logger with talker_dio_logger for better log control and Talker integration.
    • Updated PlayxNetworkLoggerSettings to support detailed logging configuration.
    • Integrated PlayxLogger for consistent logging across the Playx ecosystem.

    Other

    • Updated dependencies to their latest versions.
    • Bump minimum Dart SDK version to 3.5.0 and Flutter SDK version to 3.24.0.
    • Migrated Android example project to Kotlin DSL.
    Open source →
  5. 0.4.0 12 Mar 2025
    Release notes

    Note: This version contains breaking changes.

    Open source →
  6. 0.3.2 20 Jan 2025

    Nothing published for this version

  7. 0.3.1 20 Jan 2025
    Release notes
    • fix: bug when initializing PlayxNetworkClient.
    Open source →
  8. 0.3.0 19 Jan 2025
    Release notes
    • Mapping Enhancements:

      • Enhanced mapping of Dio responses with support for processing in an isolate using the work_manager package or the compute method.
      • Added parameters for mapping options in PlayxNetworkClientSettings:
        • useIsolateForMappingJson: Determines whether to use an isolate for mapping JSON responses.
        • useWorkManagerForMappingJsonInIsolate: Specifies whether to use work_manager or the compute function for JSON mapping in an isolate.
      • Added the ability to override PlayxNetworkClientSettings for individual requests, similar to overriding logSettings or exceptionMessages.
    • NetworkResult Enhancements:

      • Added the following convenience getters to the NetworkResult class:
        • isSuccess: Checks if the network call is successful.
        • isError: Checks if the network call has failed.
        • networkData: Returns the data if the call is successful, otherwise returns null.
        • networkError: Returns the error if the call has failed.
    • Asynchronous Mapping:

      • Introduced new mapping methods for NetworkResult:
        • mapDataAsync: Maps a network response (success or error) to a desired model asynchronously.
        • mapDataAsyncInIsolate: Maps a network response asynchronously in an isolate, with configurable options:
          • mapper: The function for transforming data.
          • exceptionMessage: A message to display in case of exceptions.
          • useWorkManager: Determines whether to use work_manager or compute for JSON mapping.
        • mapAsyncInIsolate: Separately maps success and error cases asynchronously in an isolate, with configurable options:
          • success: The function for mapping successful responses.
          • error: The function for mapping error responses.
          • useWorkManager: Determines whether to use work_manager or compute.
    Open source →
  9. 0.2.3 15 Dec 2024
    Release notes
    • fix: Bug causing error not being reported successfully.
    • feat: Update sentry_diopackage to v8.11.0.
    Open source →
  10. 0.2.2 26 Sep 2024
    Release notes
    • Add ability to download content using dio download method.
    Open source →
  11. 0.2.1 19 Sep 2024

    Nothing published for this version

  12. 0.2.0 19 Sep 2024
    Release notes

    Note: This version contains breaking changes.

    Breaking Changes
    • Combined PlayxNetworkClient Settings:
      • Merged settings for PlayxNetworkClient into a new PlayxNetworkClientSettings class.
      • Renamed LoggerSettings to PlayxNetworkLoggerSettings.
    New Features
    • Custom Queries Support:
      • Added the ability to include custom queries in network requests, enhancing flexibility for API interactions.
      • Users can decide whether to use custom queries on a per-request basis by using the attachCustomQuery option.
    Improvements
    • Enhanced PlayxNetworkLoggerSettings:

      • Added options for attaching a logger in debug and release modes (attachLoggerOnDebug and attachLoggerOnRelease).
    • Updated Dio Package:

      • Upgraded Dio package to v5.7.0 for improved performance and features.
    Open source →
  13. 0.1.2 25 Aug 2024
    Release notes
    New Features
    • Isolate-Based Data Processing:
      • Integrated Dart's Isolate to handle data processing in network responses, offloading CPU-intensive tasks to separate threads, which improves app performance, particularly in scenarios involving large datasets.
    • Sentry Dio Integration:
      • Added the Sentry Dio package to automatically capture and report errors in network requests to Sentry. This integration provides better monitoring and error tracking for network-related issues.
    Improvements
    • Updated JsonMapper Signature:
      • The JsonMapper<T> signature has been updated from T Function(dynamic json) to FutureOr<T> Function(dynamic json) to support both synchronous and asynchronous JSON processing. This allows for more flexible and efficient handling of JSON data.
    Bug Fixes
    • Fixed an issue where getList and postList methods did not return results when the API response was not a list. Now, proper error handling ensures that non-list responses are processed correctly, preventing potential runtime errors.
    Open source →
  14. 0.1.1 08 Jul 2024
    Release notes
    • Update packages.
    Open source →
  15. 0.1.0 16 Apr 2024
    Release notes

    Note: This version contains breaking changes.

    • Update packages.
    • Update onUnauthorizedRequestReceived callback to take Response instead of void to be able to customize unauthorized error handling based on response.
    • Add name field for default error model.
    Open source →
  16. 0.0.9 20 Feb 2024
    Release notes
    • Update packages.
    • Add unauthorizedRequestCodes to be able to handle different unauthorized request status codes returned from the api and fire onUnauthorizedRequestReceived callback.
    • Add successRequestCodes to be able to handle different success request status codes returned from the api and fire onUnauthorizedRequestReceived callback.
    • Enhance printing non api error messages.
    Open source →
  17. 0.0.8 21 Dec 2023
    Release notes
    • Update packages.
    • Add statusCode to ApiException to be able to handle different error status codes returned from the api.
    Open source →
  18. 0.0.7 25 Sep 2023
    Release notes
    • Update packages.
    • Bug fix, causing onUnauthorizedRequestReceived not called when receiving unauthorized request on certain cases.
    Open source →
  19. 0.0.6 06 Sep 2023
    Release notes
    • Add ability to not handle unauthorized requests on each request.
    • [Breaking Change]! : Each Network Exception now takes errorMessage of type String instead of exceptionMessage
    Open source →
  20. 0.0.5 20 Jul 2023
    Release notes
    • Enhancements for default error model.
    Open source →
  21. 0.0.4 20 Jul 2023
    Release notes
    • Make customHeaders to be of type function that return a map to be updated correctly.
    Open source →
  22. 0.0.3 20 Jul 2023
    Release notes
    • fix some bugs causing error not being reported successfully.
    Open source →
  23. 0.0.2 20 Jul 2023
    Release notes
    • update from json to take dynamic json instead of map.
    Open source →
  24. 0.0.1 19 Jul 2023
    Release notes
    • initial release
    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