dio icon indicating copy to clipboard operation
dio copied to clipboard

Welcome to submit Dio's third-party plugins and related libraries here

Open aloisdeniel opened this issue 5 years ago • 21 comments

After searching for a while for a caching solution, I created my own interceptor. But, maybe another solution exists and I missed it ...

It would be great to have a list of third party interceptors and transformers in the README. Having conventions for plugin would be very appreciated too (like naming, API, usage, etc ...).

Here two packages of mine :

aloisdeniel avatar Jun 21 '19 22:06 aloisdeniel

After I saw your plugins, I was about to come here and suggest either an "awesome-dio" or a section plugin authors can collaborate and update on that wouldn't affect the current lifecycle.

jogboms avatar Jun 22 '19 12:06 jogboms

This would be great, I have a small gist on built_value integration with dio.

humblerookie avatar Jun 28 '19 03:06 humblerookie

It would be useful to have this kind of list, and I have a cache lib too :

  • dio-http-cache : a simple cache library for Dio like Rxcache in Android

hurshi avatar Jul 16 '19 08:07 hurshi

Ok? I think we still should?

jogboms avatar Aug 16 '19 12:08 jogboms

We have some specifications for third-party libraries:

  • All plugins and libraries should support Dio 4.x
  • Having detailed documentation and examples

wendux avatar Sep 20 '19 04:09 wendux

@wendux Please consider adding this one to your ducomention. PrettyDioLogger

Milad-Akarie avatar Oct 03 '19 09:10 Milad-Akarie

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, please make sure it is up to date and if so, add a comment that this is still an issue to keep it open. Thank you for your contributions.

stale[bot] avatar Nov 02 '19 09:11 stale[bot]

@wendux Please consider adding this one to your ducomention. dcache_flutter

Dcache_flutter is a library both for Dio 3.x and 2.x. Dcache_flutter uses sqflite as disk cache. It is used in our product. It is fully tested and stable. Maybe others will like it too.

ligun123 avatar Dec 06 '19 02:12 ligun123

Hello I created a Lib to make Certificate Pinning on Flutter with a Dio interceptor to uses in Dio:

http_certificate_pinning

I think that is interesting add into Dio documentation.

diefferson avatar Feb 28 '20 17:02 diefferson

I created an oauth 2.0 authentication plugin for dio I think it would be interesting to add it in the documentation.

https://pub.dev/packages/oauth_dio

salomaosnff avatar Aug 18 '20 23:08 salomaosnff

Here is a new package for retry with Dio. It supports dio 4.0 and null safety: https://pub.dev/packages/dio_smart_retry

This is a next generation of an abandoned dio_retry package.
By default, the request will be retried only for appropriate retryable http statuses.
Also, it supports dynamic delay between retries.

rodion-m avatar Aug 01 '21 20:08 rodion-m

Here's an interceptor we created to transform your dio requests in curl requests: https://pub.dev/packages/curl_logger_dio_interceptor

Supports dio: ^4.0.1 and null-safety

image

HugoHeneault avatar Nov 05 '21 11:11 HugoHeneault

An interceptor that pretty prints requests/responses with ability to customize the logger.

  • Pub: https://pub.dev/packages/dio_http_formatter
  • Github: https://github.com/assemmarwan/dio_http_formatter

assemmarwan avatar Jan 14 '22 10:01 assemmarwan

Instead of using interceptors, I wrap dio adapters with golang's http.RoundTripper pattern.

Pub: https://pub.dev/packages/roundtripper Github: https://github.com/morlay/roundtripper

For impletementing atom processings and compose them in required.

Case Like:

  • Requests Loging with cost time https://github.com/morlay/roundtripper/blob/main/lib/roundtripbuilders/request_log.dart
  • RequstBody encoding https://github.com/morlay/roundtripper/blob/main/lib/roundtripbuilders/request_body_convert.dart

morlay avatar Jan 19 '22 04:01 morlay

@wendux Recommend your own plug-in A plug-in that captures requests and views them within the application, providing functions such as request replication and JSON expansion Pub: https://pub.dev/packages/dio_log Github: https://github.com/flutterplugin/dio_log

519430378qqcom avatar Jun 21 '22 02:06 519430378qqcom

As the package is now away from maintaining, we encourage you great author to consider migrate to the hard-fork diox. And see https://github.com/cfug/diox/issues/29 for more details.

AlexV525 avatar Feb 11 '23 21:02 AlexV525

Hello I created a Lib to make api gen like retorfit in dio.

cinch

I think that is interesting add into Dio documentation.

tatsuyuki25 avatar Feb 14 '23 09:02 tatsuyuki25

dio Listening tool (Android Studio&IDEA) https://github.com/mdddj/dd_flutter_idea_plugin/blob/master/dio.md

mdddj avatar Feb 21 '23 10:02 mdddj

Easy to use cookie handler: https://github.com/hurelhuyag/dio_cookie_cached_handler

hurelhuyag avatar May 18 '23 09:05 hurelhuyag

Hi! We created a simple request library with type transforming based on dio which my team using in production at our own projects! It provides a chopper style type safe api without needing a generator! You can check it here: https://pub.dev/packages/tio

urusai88 avatar Jan 03 '24 22:01 urusai88

That looks pretty cool!

kuhnroyal avatar Jan 03 '24 22:01 kuhnroyal