Skip to content

Commit

Permalink
Clean leak in editable_text_test.dart. (flutter#149223)
Browse files Browse the repository at this point in the history
Introduced by 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">
  • Loading branch information
polina-c authored May 29, 2024
1 parent 60d32e4 commit c85fa6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/flutter/test/widgets/editable_text_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17656,6 +17656,8 @@ void main() {
});

testWidgets('Can implement TextEditingController', (WidgetTester tester) async {
final _TextEditingControllerImpl controller = _TextEditingControllerImpl();
addTearDown(controller.dispose);
await tester.pumpWidget(
MediaQuery(
data: const MediaQueryData(),
Expand All @@ -17664,7 +17666,7 @@ void main() {
child: EditableText(
autofocus: true,
backgroundCursorColor: Colors.grey,
controller: _TextEditingControllerImpl(),
controller: controller,
focusNode: focusNode,
style: textStyle,
cursorColor: cursorColor,
Expand Down

0 comments on commit c85fa6a

Please sign in to comment.