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

Time:07-28

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"),

CodePudding user response:

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",

CodePudding user response:

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

  • Related