the argument type string cannot be assigned to parameter type Uri http package code example
Example: The argument type 'String' can't be assigned to the parameter type 'Uri'.
Replace http.get(someString) With http.get(Uri.parse(someString))
Replace http.get(someString) With http.get(Uri.parse(someString))