remove prints
This commit is contained in:
@@ -26,19 +26,19 @@ class _PatientViewState extends State<PatientView> {
|
|||||||
//print("Patien manager page: $endpoint");
|
//print("Patien manager page: $endpoint");
|
||||||
final response = await http.get(Uri.parse(
|
final response = await http.get(Uri.parse(
|
||||||
"${AppEnviroment.baseApiUrl}/patients/${widget.signedInUser.app_id}"));
|
"${AppEnviroment.baseApiUrl}/patients/${widget.signedInUser.app_id}"));
|
||||||
print("Here");
|
// print("Here");
|
||||||
print("Body: ${response.body}");
|
// print("Body: ${response.body}");
|
||||||
print("Code: ${response.statusCode}");
|
// print("Code: ${response.statusCode}");
|
||||||
// var errorCode = response.statusCode.toString();
|
// var errorCode = response.statusCode.toString();
|
||||||
// var errorBody = response.body;
|
// var errorBody = response.body;
|
||||||
|
|
||||||
if (response.statusCode == 200) {
|
if (response.statusCode == 200) {
|
||||||
print("Here1");
|
//print("Here1");
|
||||||
var decodedData = jsonDecode(response.body);
|
var decodedData = jsonDecode(response.body);
|
||||||
print("Here2");
|
// print("Here2");
|
||||||
Patient patients = Patient.fromJson(decodedData as Map<String, dynamic>);
|
Patient patients = Patient.fromJson(decodedData as Map<String, dynamic>);
|
||||||
print("Here3");
|
// print("Here3");
|
||||||
print(patients);
|
// print(patients);
|
||||||
return patients;
|
return patients;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user