api_network_kit 1.0.3
api_network_kit: ^1.0.3 copied to clipboard
A scalable Flutter package featuring a reusable API client (api_kit) for robust HTTP handling using Dio.
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 #
- 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