Open isalcedo opened 5 months ago
I also encountered the same problem.
This is my flutter doctor
:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-x64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] Connected device (4 available)
[!] Network resources
✗ A network error occurred while checking "https://maven.google.com/": Operation timed out
! Doctor found issues in 1 category.
And my Dart SDK version also is 3.4.3(stable)
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.
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)]