easy_api_sl 0.1.5
easy_api_sl: ^0.1.5 copied to clipboard
A Flutter package that makes API calls easy and maintainable with built-in token management, error handling, and logging.
example/README.md
Easy API Example #
This example demonstrates how to use the easy_api_sl package to make HTTP requests in a Flutter application.
Features #
- GET request example
- POST request example
- PUT request example
- PATCH request example
- DELETE request example
- Error handling
- Loading states
- Response display
Getting Started #
- Run the example:
flutter run
-
The example uses JSONPlaceholder as a test API.
-
Try different HTTP methods using the buttons in the app.
Code Structure #
main.dart: Entry point of the applicationpubspec.yaml: Dependencies configuration
Screenshots #
The app provides a simple interface with:
- Buttons for different HTTP methods
- Loading indicator
- Response display area
- Error handling
Learn More #
For more information about the easy_api_sl package, visit: