Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mahanrahmati/arna_web_service

Arna Web Service is a simple and powerful HTTP package for Flutter.
https://github.com/mahanrahmati/arna_web_service

dart flutter http

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        


pub.dev




## 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:

```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:

```dart
import 'package:arna_web_service/arna_web_service.dart';
```

After that extend your class:

```dart
class APIController extends ArnaWebServiceController {}
```

Or directly create an instance:

```dart
final ArnaWebService webService = ArnaWebService.service();
```

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

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

```

## License

Arna Web Service is [BSD 3-Clause licensed](./LICENSE).

## 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.