mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 14:48:55 +03:30
Fix get test result inputs changes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user