Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/mahanrahmati/arna_web_service
- Owner: MahanRahmati
- License: bsd-3-clause
- Created: 2023-03-02T21:08:35.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-13T08:27:23.000Z (about 1 year ago)
- Last Synced: 2023-11-13T13:28:52.953Z (about 1 year ago)
- Topics: dart, flutter, http
- Language: Dart
- Homepage:
- Size: 330 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## 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.