Skip to content
pubscout

dash_kit_network

4.6.0, released 5 weeks ago by dash-kit.blogspot.com

Dio-based networking client for Flutter with built-in token refresh management.

$ flutter pub add dash_kit_network
Source repository

What it does

Provides a base ApiClient class built on top of Dio to structure API requests, handle responses, map JSON data using isolates, and manage authentication tokens securely.

AI-written summary of version 4.6.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building a Flutter application that requires structured REST API integration.
  • You need built-in handling for authorization tokens and automatic refresh flows.

Skip it when

  • You prefer using pure Dio without extra wrappers.
  • You are working with GraphQL or WebSockets rather than a standard REST API backend.

Strengths

  • Built-in authentication token management and storage
  • Background isolate execution for response mappers
  • Built on top of the popular Dio package

Weaknesses

  • Requires writing custom response mappers and API client classes
  • Tied closely to Dash-Kit patterns and conventions

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
4

Requires creating an ApiClient subclass, setting up an ApiEnvironment, and configuring Dio instances.

class ApplicationApi extends ApiClient {
  ApplicationApi({
    required ApiEnvironment environment,
    required Dio dio,
  }) : super(environment: environment, dio: dio);

  Future<UsersResponseModel> getUserList() => get(
        path: 'users',
        responseMapper: response_mappers.users,
      );
}

Alternatives

Packages that do the same job and could replace dash_kit_network.

  • http

    If you want a simpler, built-in low-level HTTP client rather than a feature-rich networking stack.

Works with

Packages commonly used together with dash_kit_network: ones it builds on, ones built on it, and its own family.