I developed an application with native android and native iOS, but now I want to recreate it using flutter.
some of the requests that I done successfully in native android and iOS are returning 302 status code in flutter.
the problem is that I can't get 302 response on postman so I may understand what is the problem, it keep happening only on flutter.
Map<String, String> headers = {'Content-Type': 'application/json', "Authorization": "Bearer ${App.token}"};
Response response = await post(URL, body: jsonEncode({"FullName": name}), headers: headers);
if (checkIfSuccessful(response)) {
return true;
} else {
return false;
}