Skip to content

HTTP Network Request module for Sugar Foundation projects

License

Notifications You must be signed in to change notification settings

Eric0x/network_flutter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

network_flutter

HTTP Network Request module for Sugar Foundation projects

Introduction

Based on Dio package Dio

Getting Started

Add the dependency in your project's 'pubspec.yaml' file.

  network_flutter:
    git: https://github.com/Sugar-Foundation/network_flutter

Before using the 'Request', you need to setup the api 'baseUrl' endpoint.

Request().setup('https://api.xxx.com/api');

To send a request simply call the needed method.

Request().getValue('https://api.xxx.com/api/time');

About

HTTP Network Request module for Sugar Foundation projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 100.0%