lemu
lemu

Reputation: 64

The argument type 'Uri' can't be assigned to the parameter type 'String'

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

Answers (2)

Kaushik Chandru
Kaushik Chandru

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

Md. Yeasin Sheikh
Md. Yeasin Sheikh

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

Related Questions