add dispose to files to remove controllers when not used

This commit is contained in:
2024-08-23 11:14:53 +02:00
parent fdc7e1dda3
commit 2ef8eb2b3c
45 changed files with 374 additions and 53 deletions

View File

@@ -272,6 +272,13 @@ class _PatientNotesState extends State<PatientNotes> {
}
}
@override
void dispose() {
titleController.dispose();
noteTextController.dispose();
super.dispose();
}
@override
void initState() {
futueNotes = fetchNotes(endpoint + widget.patientAppId);