Reputation: 64
i would like to know why flutter gives this error. I have tried parsing as a String but that has not helped i have also tried Uri.http but with no avail
callbackUrl: Uri("http://ip_address:8080/signin"),
Upvotes: 0
Views: 3286
Reputation: 17802
You should be using only a string
callbackUrl: "http://ip_address:8080/signin",
The error says that you should be passing a string but you are passing a uri
Upvotes: 1
Reputation: 63799
To parse it will be
Uri.parse("http://ip_address:8080/signin");
Also The error message says, you need to pass string instead of Uri.
Do it like
callbackUrl:"http://ip_address:8080/signin",
Upvotes: 2