From 6957e4ad04321a32c7ca4e88bd6ac5b4daf99212 Mon Sep 17 00:00:00 2001 From: Masum Billah Sanjid <54928529+sanjidbillah@users.noreply.github.com> Date: Wed, 15 Apr 2026 22:19:57 +0600 Subject: [PATCH] Dispose email and password controllers in the login screen (#2741) This PR ensures proper disposal of the TextEditingController instances for the email and password fields in the login screen to prevent memory leaks. ## Pre-launch Checklist - [x] I read the [Flutter Style Guide] _recently_, and have followed its advice. - [x] I signed the [CLA]. - [x] I read the [Contributors Guide]. - [x] I have added sample code updates to the [changelog]. - [x] I updated/added relevant documentation (doc comments with `///`). Co-authored-by: Eric Windmill --- compass_app/app/lib/ui/auth/login/widgets/login_screen.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compass_app/app/lib/ui/auth/login/widgets/login_screen.dart b/compass_app/app/lib/ui/auth/login/widgets/login_screen.dart index e33196c1f..066fd00f1 100644 --- a/compass_app/app/lib/ui/auth/login/widgets/login_screen.dart +++ b/compass_app/app/lib/ui/auth/login/widgets/login_screen.dart @@ -43,6 +43,8 @@ class _LoginScreenState extends State { @override void dispose() { + _email.dispose(); + _password.dispose(); widget.viewModel.login.removeListener(_onResult); super.dispose(); }