I use the requests library to post data and at the server receive empty body no data was pass. Is there anything I left in the code?
Map map = new Map<String, dynamic>();
map[csrfNameKey] = csrfName;
map[csrfValueKey] = csrfValue;
map["username"] = idControler.text;
map["password"] = passControler.text;
dynamic data;
data = await Requests.post(widget.url + "login", body: json.encode(map),json: true,headers:{"ContentType":"application/json",HttpHeaders.contentTypeHeader: 'application/json'} ,bodyEncoding: RequestBodyEncoding.JSON);