Skip to content

Network caller for the api based application with the help of http package

License

Notifications You must be signed in to change notification settings

RafatMeraz/network_caller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Network caller for the api based application with the help of http package

Features

  • get request
  • post request
  • multipart file support & conversion
  • logger

Getting started

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

Usage

final response = await BaseNetworkCaller.getRequest(
    'url', 
    token: 'your_token_here_if_necessary', 
    onUnAuthorized: () {
      // your desired action you want to do
    }
);

Additional information

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.

About

Network caller for the api based application with the help of http package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published