Clear all controlls when closing perscription pop up
This commit is contained in:
@@ -358,6 +358,12 @@ class _PatientFilesState extends State<PatientFiles> {
|
|||||||
height: 50,
|
height: 50,
|
||||||
child: IconButton(
|
child: IconButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
medicineController.clear();
|
||||||
|
quantityController.clear();
|
||||||
|
dosageController.clear();
|
||||||
|
timesDailyController.clear();
|
||||||
|
noDaysController.clear();
|
||||||
|
noRepeatsController.clear();
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
},
|
},
|
||||||
icon: const Icon(
|
icon: const Icon(
|
||||||
|
|||||||
Reference in New Issue
Block a user