Skip to content

Commit 6957e4a

Browse files
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 <eric@ericwindmill.com>
1 parent 7a04286 commit 6957e4a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

compass_app/app/lib/ui/auth/login/widgets/login_screen.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ class _LoginScreenState extends State<LoginScreen> {
4343

4444
@override
4545
void dispose() {
46+
_email.dispose();
47+
_password.dispose();
4648
widget.viewModel.login.removeListener(_onResult);
4749
super.dispose();
4850
}

0 commit comments

Comments
 (0)