my name is Marques and desenvolving a flutter project for my end project in school and i’m a little but desesperated with a error that i can’t solve .
I hope someone could help solving this to could continue making my flutter app.
The error image
they are saying that ‘The argument type String can’t be assigned to the Parameter Uri’
Adding as Uri and making a run of the mobile flutter project when i enter the email and password and click into the Login Button appers the next message to me
error message
I hope someone could help me I will be very grateful
I had tried to change it or to add a similar code but didnt work
3
Answers
Try This Way
The
post()
method of http package expects Uri instead of string.All you need to do is parse the url string you provided.
Instead of using as Uri, try to parse the string with the following way.