api_network_kit 1.2.1 copy "api_network_kit: ^1.2.1" to clipboard
api_network_kit: ^1.2.1 copied to clipboard

A batteries-included, no-codegen Dio wrapper for Flutter/Dart featuring typed parsing, resilient retry, automatic token refresh, caching, pagination, and WASM-ready checks.

example/README.md

api_network_kit Examples #

This directory contains examples demonstrating how to use api_network_kit in your Dart/Flutter applications.

Included Examples #

  1. example_usage.dart: A quick, simple guide showing how to initialize ApiKit, perform basic GET/POST requests with automatic model mapping, and handle network connection errors.
  2. comprehensive_example.dart: A real-world demonstration displaying advanced configuration setup, request caching, interceptors, and robust, status-code-specific exception handling.
  3. advanced_example.dart: Code walkthrough demonstrating token updates, timeouts, and customized Dio configurations.

How to Run the Examples #

You can run any of these examples directly from your terminal using the Dart CLI:

# Run the basic example
dart example/example_usage.dart

# Run the comprehensive example
dart example/comprehensive_example.dart

# Run the advanced example
dart example/advanced_example.dart
7
likes
160
points
584
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A batteries-included, no-codegen Dio wrapper for Flutter/Dart featuring typed parsing, resilient retry, automatic token refresh, caching, pagination, and WASM-ready checks.

Repository (GitHub)
View/report issues

Topics

#http #network #api-client #dio #rest

License

MIT (license)

Dependencies

dio

More

Packages that depend on api_network_kit