-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FormData and List of Int not working as expected. #2241
Labels
Comments
isalcedo
added
h: need triage
This issue needs to be categorized
s: bug
Something isn't working
labels
Jun 10, 2024
I also encountered the same problem.
And my Dart SDK version also is |
Could you explain why you think the result should be the indexed version, maybe some specs or documents? Also it would be great if you could provide a working version of the library. |
Closing as no active discussions are happening in this thread and the library seems to work as expected. |
AlexV525
added
i: no response
and removed
h: need more info
Further information is requested
h: need triage
This issue needs to be categorized
s: bug
Something isn't working
labels
Jan 23, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Package
dio
Version
5.4.3+1
Operating-System
Android, iOS
Adapter
Default Dio
Output of
flutter doctor -v
Dart Version
Dart SDK version: 3.4.3 (stable)
Steps to Reproduce
List<int> categories = [104, 105];
Map<String, dynamic> jsonPayload = {'categories': categories};
print(FormData.fromMap(jsonPayload).fields);
Expected Result
[MapEntry(categories[0]: 104), MapEntry(categories[1]: 105)]
Actual Result
[MapEntry(categories: 104), MapEntry(categories: 105)]
The text was updated successfully, but these errors were encountered: