Fix get test result inputs changes

This commit is contained in:
hanie.khodkari
2025-05-08 22:00:41 +03:30
parent 75cd8e5c78
commit 12758968c9
4 changed files with 31 additions and 23 deletions
+5 -3
View File
@@ -15,12 +15,13 @@ import 'package:random_string/random_string.dart';
class TestResultsProvider with ChangeNotifier {
List<PlatformFile> catchImages = [];
List<Uint8List> images = [];
String testType = '';
String testTypeId = '';
String testCode = '';
List<Map<String, String>> testTypeMap = [];
resetTests() {
testCode = '';
testType = '';
testTypeId = '';
}
setImages() async {
@@ -208,9 +209,10 @@ class TestResultsProvider with ChangeNotifier {
result.add(hospitals);
for (var testType in filterDatas['data']['TestTypes']) {
testTypes.addAll({testType['name']: testType['id'].toString()});
testTypeMap.add(testTypes);
}
result.add(testTypes);
print("test type : ${testTypeMap}");
return result;
}