Dio: After Updating Dio 3.0.7 getting error in FormData the method 'form' isn't defined for class FormData..

Created on 5 Dec 2019  路  7Comments  路  Source: flutterchina/dio

Screenshot 2019-12-05 at 6 25 56 PM

New Issue Checklist

  • [ ] I have searched for a similar issue in the project and found none

Issue Info

| Info | Value | |
| ------------------------------ | ----------------------------------------------------- | ---- |
| Platform Name | e.g. flutter / ios / android | |
| Platform Version | e.g. 1.5.0 / 12.0 / 9.0 | |
| Dio Version | e.g. 2.1.0 / 1.0.17 | |
| Android Studio / Xcode Version | e.g. Android Studio 3.3.2 / Xcode 10.2.1 | |
| Repro rate | e.g. all the time (100%) / sometimes x% / only once | |
| Repro with our demo prj | e.g. does it happen with our demo project? | |
| Demo project link | e.g. link to a demo project that highlights the issue | |

Issue Description and Steps

Please fill in the detailed description of the issue (full output of any stack trace, compiler error, ...) and the steps to reproduce the issue.

stale

All 7 comments

I get the same issue.
Does someone solve?

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.

I get the same issue.

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.

Try FormData formData = FormData.fromMap(<String, dynamic>{ "name": "wendux", });

I am having the same issue. Updated to dio:3.0.9 and got this error. Also if downgrade to 2.2.2 parse function stops working and build is failed.

Deneyin FormData formData = FormData.fromMap(<String, dynamic>{ "name": "wendux", });

nice bro you code work :)

Was this page helpful?
0 / 5 - 0 ratings