Future getSearchData() async {
var srch = {'Search': query};
var data =
await http.post("http://10.0.2.2/DBCON/searchspec.php", body: srch);
var databody = jsonDecode(data.body);
return databody;
}
I am trying to get data from my localhost and print it in my flutter application, the problem is it is working perfectly in Android Emulator, but it doesn't work in my physical device, can you tell me what to do in order to make it work in my physical device?