mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 12:08:54 +03:30
1.7.0
This commit is contained in:
@@ -190,6 +190,7 @@ class TestResultsProvider with ChangeNotifier {
|
||||
url,
|
||||
headers: {
|
||||
'Authorization': User.token,
|
||||
// 'X-Requested-With': 'XMLHttpRequest',
|
||||
},
|
||||
);
|
||||
|
||||
@@ -200,11 +201,11 @@ class TestResultsProvider with ChangeNotifier {
|
||||
items = [];
|
||||
}
|
||||
for (var item in testResultData['data']['data']) {
|
||||
// print(item);
|
||||
print(item);
|
||||
originalItems.add(
|
||||
TestResultObject(
|
||||
id: item['id'].toString(),
|
||||
name: item['test_type']['name'],
|
||||
name: item['test_type'] != null ? item['test_type']['name'] : '',
|
||||
deviceId: item['device_id'].toString(),
|
||||
result: item['result'] == 'Accept' ? 'Accepted' : 'Not Accepted',
|
||||
date: item['created_at'].toString().substring(0, 10),
|
||||
@@ -246,7 +247,7 @@ class TestResultsProvider with ChangeNotifier {
|
||||
"file": di.MultipartFile.fromBytes(imageListInt, filename: fileName)
|
||||
});
|
||||
|
||||
var response = await dio.post(
|
||||
await dio.post(
|
||||
Url.addImage,
|
||||
data: formData,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user