Questions tagged [dio]

Dio is a powerful HTTP client for Dart, which supports interceptors, global configuration, form data, request cancellation, file downloading, timeout, etc.

Dio is a powerful HTTP client for Dart, which supports interceptors, global configuration, form data, request cancellation, file downloading, timeout, etc.

References

Dio Dart package.

664 questions
-2
votes
1 answer

HTTP POST with raw body - Flutter/Dart

I am getting this error flutter: response body:{"Message":"The request entity's media type 'text/plain' is not supported for this resource."} which i am getting in post whenever i am changing the body type to text instead of json. How can i solve…
Munsif Ali
  • 1,839
  • 1
  • 8
  • 22
-2
votes
1 answer

Flutter downloads partial files from Google Drive and One drive

Flutter can not download files from Google Drive or OneDrive, zip or otherwise. The files just get partially downloaded whereas files from most other links from websites etc are downloaded completely. For example this Google Drive link will only get…
mohit sharma
  • 89
  • 2
  • 10
-2
votes
1 answer

Flutter: "Unhandled Exception: NoSuchMethodError: The getter 'httpClientAdapter' was called on null."

I'm trying to use dio on Flutter, but i have to ignore the certificate validation so I made some changes on code and i got the error: E/flutter (21674): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: NoSuchMethodError: The getter…
abrev
  • 305
  • 4
  • 18
-4
votes
1 answer

the token gave me nothing and i chek my code Many times

the token get null the function dio ** static Future getData( {@required String url, String token, lang = 'ar'}) async { dio.options.headers = { 'lang': lang, 'Authorization': '$token', 'Content-Type':…
1 2 3
44
45