Network caller for the api based application with the help of http package
- get request
- post request
- multipart file support & conversion
- logger
Add these line into pubspec.yaml
file as dependency and run flutter pub get
network_caller:
git:
url: https://github.com/RafatMeraz/network_caller
ref: version
final response = await BaseNetworkCaller.getRequest(
'url',
token: 'your_token_here_if_necessary',
onUnAuthorized: () {
// your desired action you want to do
}
);
TODO: Tell users more about the package: where to find more information, how to contribute to the package, how to file issues, what response they can expect from the package authors, and more.