Skip to content

Commit aa1c43b

Browse files
authored
Dispose ValueNotifier in EditableTextState (#104590)
1 parent b05741c commit aa1c43b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/flutter/lib/src/widgets/editable_text.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1953,6 +1953,7 @@ class EditableTextState extends State<EditableText> with AutomaticKeepAliveClien
19531953
WidgetsBinding.instance.removeObserver(this);
19541954
_clipboardStatus?.removeListener(_onChangedClipboardStatus);
19551955
_clipboardStatus?.dispose();
1956+
_cursorVisibilityNotifier.dispose();
19561957
super.dispose();
19571958
assert(_batchEditDepth <= 0, 'unfinished batch edits: $_batchEditDepth');
19581959
}

0 commit comments

Comments
 (0)