Skip to content

Commit c85fa6a

Browse files
authored
Clean leak in editable_text_test.dart. (#149223)
Introduced by flutter/flutter#149042 <img width="145" alt="Screenshot 2024-05-28 at 6 25 22�PM" src="https://github.com/flutter/flutter/assets/12115586/5eb32012-b1c4-4188-8e9b-a6631483960c">
1 parent 60d32e4 commit c85fa6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/flutter/test/widgets/editable_text_test.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -17656,6 +17656,8 @@ void main() {
1765617656
});
1765717657

1765817658
testWidgets('Can implement TextEditingController', (WidgetTester tester) async {
17659+
final _TextEditingControllerImpl controller = _TextEditingControllerImpl();
17660+
addTearDown(controller.dispose);
1765917661
await tester.pumpWidget(
1766017662
MediaQuery(
1766117663
data: const MediaQueryData(),
@@ -17664,7 +17666,7 @@ void main() {
1766417666
child: EditableText(
1766517667
autofocus: true,
1766617668
backgroundCursorColor: Colors.grey,
17667-
controller: _TextEditingControllerImpl(),
17669+
controller: controller,
1766817670
focusNode: focusNode,
1766917671
style: textStyle,
1767017672
cursorColor: cursorColor,

0 commit comments

Comments
 (0)