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.
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.
Works with
Packages commonly used together with dash_kit_network: ones it builds on, ones built on it, and its own family.
- shared_preferencesdash_kit_network depends on itFlutter plugin for reading and writing simple key-value pairs. Wraps NSUserDefaults on iOS and SharedPreferences on Android.
- rxdartdash_kit_network depends on itImplementation of the ReactiveX API for asynchronous programming leveraging native Dart Streams.
- flutter_secure_storagedash_kit_network depends on itSecure key-value storage using platform-specific secure mechanisms
- diodash_kit_network depends on itA powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.