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
+2 -5
View File
@@ -74,15 +74,12 @@ class _FormPageState extends State<FormPage> {
_isLoading = true;
});
var providerObject = Provider.of<TestResultsProvider>(context);
String testTypeName = Provider.of<TestResultsProvider>(context).testType;
String testCode = Provider.of<TestResultsProvider>(context).testCode;
String testTypeId = Provider.of<TestResultsProvider>(context).testTypeId;
providerObject.catchImages.clear();
Provider.of<Inputs>(context, listen: false)
.getInputs(
testResultId: '',
name: testTypeName,
uniqueCode: testCode,
testTypeId: '',
testTypeId: testTypeId,
)
.then((_) {
setState(() {