Replies: 1 comment
-
The issue was with the decoder for the request being different that for the response. So I ended up with something like this:
And I call this via
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using get: 4.6.5
I have defined a provider
In my binding class add it as a dependency
And register the LoginView as a route
And added it to my controller
The controller is used in my LoginView
class LoginView extends GetView<LoginController> {...}
In my MaterialButton of the LoginView I use the onPressed to call the provider and get the result object Auth and print it out as json.
I generated my Auth model from JSON using the GetX cli:
What I get in the console is
flutter: {jwt: null}
And my localhost service is never called.
Beta Was this translation helpful? Give feedback.
All reactions