dart The argument type 'String' can't be assigned to the parameter type 'Uri'
// Uri is needed. It can be built from url:
import 'package:http/http.dart' as http;
response = await http.get(Uri.parse("path_to.php"));
dart The argument type 'String' can't be assigned to the parameter type 'Uri'
// Uri is needed. It can be built from url:
import 'package:http/http.dart' as http;
response = await http.get(Uri.parse("path_to.php"));
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.)
The argument type 'String' can't be assigned to the parameter type 'Uri'.
Replace http.get(someString) With http.get(Uri.parse(someString))
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us