Sending Data to Server
final url=Uri.http("surevih.in","/api/djpsiteuser",
{ 'usertype_id': dropdownValue.toString() ,
'email': emailController.text,
'mobileno': mobileController.text,
'status': statusController.text
, });
print("Url : ${url}");
try{
final response =await http.post(url);
print(response);
print(response.statusCode);
print(response.body);
}catch(e){
print(e);
}
No comments:
Post a Comment