Fix code error in select test result

This commit is contained in:
hanie.khodkari
2025-05-27 17:01:37 +03:30
parent 9975fb46f0
commit edc4b08194
+6 -2
View File
@@ -242,12 +242,16 @@ class _TestResultAddScreenState extends State<TestResultAddScreen> {
fontSize: 5 * _deviceBlockSize,
),
),
onPressed: () {
onPressed: () async {
print(
"testCodeCTRL.text : ${testCodeCTRL.text}");
print(
"testTypeCTRL.text : ${testTypeCTRL.text}");
if (testCodeCTRL.text != '') {
Provider.of<TestResultsProvider>(
context,
listen: false,
).testCode = testCodeCTRL.text;
).testTypeId = testCodeCTRL.text;
Navigator.pushNamed(
context,
Routes.formTestResultScreen,