pub-web.flutter-io.cn

Introduction

This is a Flutter plugin that provides a simple and powerful way to connect to HTTP-based web services from your Flutter app.

Installation

Add Arna Web Service as a dependency in your pubspec.yaml:

dependencies:
  arna_web_service: ^2.5.0

Then, run flutter pub get to install the package.

Usage

To use the web Service in your application, simply import the package:

import 'package:arna_web_service/arna_web_service.dart';

After that extend your class:

class APIController extends ArnaWebServiceController  {}

Or directly create an instance:

final ArnaWebService webService = ArnaWebService.service();

You can then use the web service to make API calls:

final Response? response = await webService.get(
  Uri.parse('https://api.ipify.org'),
);

License

Arna Web Service is BSD 3-Clause licensed.

Contributing

Contributions are welcome! If you find a bug or want to add a new feature, please open an issue or submit a pull request.

Libraries

arna_web_service
Arna Web Service is a simple and powerful HTTP package for Flutter.