Skip to content

Commit

Permalink
Adds dispose to TextEditingController
Browse files Browse the repository at this point in the history
  • Loading branch information
vicenterusso committed Mar 23, 2024
1 parent 94c928d commit 0fc9ffc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/src/widgets/reactive_text_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -299,4 +299,10 @@ class _ReactiveTextFieldState<T>
: TextEditingController();
_textController.text = initialValue == null ? '' : initialValue.toString();
}

@override
void dispose() {
_textController.dispose();
super.dispose();
}
}

0 comments on commit 0fc9ffc

Please sign in to comment.