From 4cfdc9c437a43ce3495cecc2b540ad7b5fd5acbb Mon Sep 17 00:00:00 2001 From: "taha.alam@cloudsolutions.com.sa" Date: Mon, 15 Dec 2025 15:30:47 +0300 Subject: [PATCH] change the state of viewmodel after discussing with sultan --- .../prescription/add_prescription/add_drug/add_drug_widget.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/screens/prescription/add_prescription/add_drug/add_drug_widget.dart b/lib/screens/prescription/add_prescription/add_drug/add_drug_widget.dart index aa954144..ad3628cd 100644 --- a/lib/screens/prescription/add_prescription/add_drug/add_drug_widget.dart +++ b/lib/screens/prescription/add_prescription/add_drug/add_drug_widget.dart @@ -145,7 +145,7 @@ class _AddDrugWidgetState extends State { ViewState.ErrorLocal) { GifLoaderDialogUtils.hideDialog(context); Utils.showErrorToast(widget.medicineModel!.error); - } else if (widget.modelPrescription!.state == + } else if (widget.medicineModel!.state == ViewState.Idle) { await widget.modelPrescription !.getPrescriptionListNew(