Shrutimahajan / Google-AutoComplete-TextField-Flutter

MIT License
28 stars 98 forks source link

DioErrorHandler properties missing #39

Closed darul9061 closed 6 months ago

darul9061 commented 7 months ago

../../../.pub-cache/hosted/pub.dev/google_places_flutter-2.0.6/lib/DioErrorHandler.dart:18:25: Error: Member not found: 'connectTimeout'. case DioErrorType.connectTimeout: ^^^^^^^^^^^^^^ ../../../.pub-cache/hosted/pub.dev/google_places_flutter-2.0.6/lib/DioErrorHandler.dart:21:25: Error: Member not found: 'other'. case DioErrorType.other: ^^^^^ ../../../.pub-cache/hosted/pub.dev/google_places_flutter-2.0.6/lib/DioErrorHandler.dart:33:25: Error: Member not found: 'response'. case DioErrorType.response: ^^^^^^^^ Target kernel_snapshot failed: Exception

This error was found running with dio version 5.4.0

Please help fix it.

asmrtfm commented 7 months ago

Solution seems straight forward (https://pub.dev/documentation/dio/latest/dio/DioErrorType.html)

Also, I am using the current version (2.0.6), which includes the file 'lib/DioErrorHandler.dart' and yet here on the repo that file is missing, otherwise I would submit a pull request with the fix.

darul9061 commented 7 months ago

will appreciate the pull request

asmrtfm commented 6 months ago

I am new to the flutter ecosystem, so it's possible that I am confused, but when I pull down this project as a dependency, it contains files under the lib directory which are not shown here on github despite being the same version/branch. I resolved the errors by editing one these missing files ("lib/DioErrorHandler.dart") replacing its usage of outdated Dio syntax as per their changelog linked above in my post.

Shrutimahajan commented 6 months ago

Please check the new version.