the argument type 'string' can't be assigned to the parameter type 'Uri' flutter code example
Example: the argument type 'string' can't be assigned to the parameter type 'uri'. flutter
More generally, if you previously used http.get(someString), http.post(someString), etc. you instead will need to use http.get(Uri.parse(someString)), http.post(Uri.parse(someString)), and so on. (package:http formerly called Uri.parse internally to convert a String into a Uri for you.)