From 6176aed6504df18b9112c744da8764fa40992b54 Mon Sep 17 00:00:00 2001 From: yaso-meth Date: Fri, 5 Jul 2024 16:34:32 +0200 Subject: [PATCH] Clear all controlls when closing perscription pop up --- Frontend/patient_manager/lib/components/patientFiles.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Frontend/patient_manager/lib/components/patientFiles.dart b/Frontend/patient_manager/lib/components/patientFiles.dart index 0c0d3ea3..a4340827 100644 --- a/Frontend/patient_manager/lib/components/patientFiles.dart +++ b/Frontend/patient_manager/lib/components/patientFiles.dart @@ -358,6 +358,12 @@ class _PatientFilesState extends State { height: 50, child: IconButton( onPressed: () { + medicineController.clear(); + quantityController.clear(); + dosageController.clear(); + timesDailyController.clear(); + noDaysController.clear(); + noRepeatsController.clear(); Navigator.pop(context); }, icon: const Icon(