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
The name 'Response' is defined in the libraries 'package:dio/src/response.dart (via package:dio/dio.dart)' and 'package:get/get_connect/http/src/response/response.dart'. #994
Comments
Do: import 'package:get/get.dart' hide Response; |
And if I was using GetConnect? |
import 'package:dio/dio.dart‘ hide Response; |
Thanks |
@eduardoflorence Thanks for the great package! Basically this is the most loved flutter package we use so far, well done! Regarding this issue, just curious would it be better for user to import separately if they need to use the GetResponse? as Dio is quite a common and popular package. |
Hi @itwondersteam, I'm glad you like Getx, I love him too. I am not the owner of this package, I am just a contributor. Jonny has already explained in another issue about the reason for incorporating GetConnect, please take a look at it: |
@eduardoflorence thanks for the pointer, and it is great to see where Getx is heading to. The idea of integrate everything in one place without it breaking due to incompatibility is just awesome! Having said that, I still feel it might be better to import Response separately, for the reason
Just my 2 cents, but I understand that there might be other considerations from getx project point of view that I have not thought of... Still, Getx is damn sexy! Well done Sir, @jonataslaw |
Thanks dude. |
Since I'm using import 'package:get/get.dart' hide Response; |
sorry to say, but it was answered in previous comment 😂 |
It's different actually. The previous hide from Dio, but mine hide from Get |
@ghenry this is previous answer. |
Ah yes, sorry, missed that 👍 |
You have to add prefix to the Response when you are using get library. |
THANKSSSS ... |
Thanks this worked in my case I got this error: Then I fixed it with the help of this comment: import 'package:dio/dio.dart' as dio; |
Thank you ! |
Try this
|
Describe the bug
Should there be a conflict here?
Reproduction code
Test the following
example:
To Reproduce
Not needed
Expected behavior
No conflict.
Flutter Version:
Getx Version:
3.23.1
Describe on which device you found the bug:
Window Desktop
Minimal reproduce code
Not needed
Workaround:
If I do:
and then something like:
all is well.
The text was updated successfully, but these errors were encountered: