add dispose to files to remove controllers when not used
This commit is contained in:
parent
fdc7e1dda3
commit
2ef8eb2b3c
45 changed files with 374 additions and 53 deletions
|
|
@ -617,6 +617,22 @@ class _PatientFilesState extends State<PatientFiles> {
|
|||
}
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
startDateController.dispose();
|
||||
endDateTextController.dispose();
|
||||
retDateTextController.dispose();
|
||||
selectedFileController.dispose();
|
||||
medicineController.dispose();
|
||||
quantityController.dispose();
|
||||
dosageController.dispose();
|
||||
timesDailyController.dispose();
|
||||
noDaysController.dispose();
|
||||
noRepeatsController.dispose();
|
||||
outputController.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
futueFiles = fetchFiles();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue