api_network_kit 1.2.0
api_network_kit: ^1.2.0 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.
api_network_kit Examples #
This directory contains examples demonstrating how to use api_network_kit in your Dart/Flutter applications.
Included Examples #
- 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. - comprehensive_example.dart: A real-world demonstration displaying advanced configuration setup, request caching, interceptors, and robust, status-code-specific exception handling.
- 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