response_wrapper 0.0.2 copy "response_wrapper: ^0.0.2" to clipboard
response_wrapper: ^0.0.2 copied to clipboard

The response_wrapper package offers a convenient way to handle HTTP requests and responses in Flutter applications. It includes a DioService class that encapsulates common HTTP methods such as GET, PO [...]

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add response_wrapper

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  response_wrapper: ^0.0.2

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:response_wrapper/response_wrapper.dart';
2
likes
120
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

The response_wrapper package offers a convenient way to handle HTTP requests and responses in Flutter applications. It includes a DioService class that encapsulates common HTTP methods such as GET, POST, PUT, and DELETE. The package simplifies the process of making API calls and handling responses, providing a clean and organized approach. It presents a simple UI with a centered text field to display the API response.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

dio, flutter, get_it

More

Packages that depend on response_wrapper