I am trying to make an http post request using the Dio package on flutter Web with the code below but whenever click the button to make the request I get the error in the picture with no data returned.I dont get what may be causing the problem.
Map<String,dynamic> postData = {
"email":"[email protected]",
"password":"qwerty123456",
};
var resp = await dio.post("http://10.15.5.46/codeishweb/LoginUser.php",data: postData );
if (resp.statusCode == 200) {
if(resp.data != null){
print("not null");
responseBody = resp.data;
print("results ::$responseBody");
}else{
print("The request gave null");
}

baseUrlis an empty String. Issue must be somewhat related to that - Harshvardhan Joshi