From 9313fb8e287b63b5c3b740156cc7cf4a86f722d1 Mon Sep 17 00:00:00 2001 From: 8rine23 <58650422+TowaYamashita@users.noreply.github.com> Date: Thu, 21 Apr 2022 06:36:14 +0900 Subject: [PATCH] The sample code used within the comments in textContaining is wrong (#100860) --- packages/flutter_test/lib/src/finders.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/flutter_test/lib/src/finders.dart b/packages/flutter_test/lib/src/finders.dart index 51583659fd7b..7b5f351b3369 100644 --- a/packages/flutter_test/lib/src/finders.dart +++ b/packages/flutter_test/lib/src/finders.dart @@ -83,16 +83,16 @@ class CommonFinders { /// ## Sample code /// /// ```dart - /// expect(find.textContain('Back'), findsOneWidget); - /// expect(find.textContain(RegExp(r'(\w+)')), findsOneWidget); + /// expect(find.textContaining('Back'), findsOneWidget); + /// expect(find.textContaining(RegExp(r'(\w+)')), findsOneWidget); /// ``` /// /// This will match [Text], [Text.rich], and [EditableText] widgets that /// contain the given pattern : 'Back' or RegExp(r'(\w+)'). /// /// ```dart - /// expect(find.textContain('Close', findRichText: true), findsOneWidget); - /// expect(find.textContain(RegExp(r'(\w+)'), findRichText: true), findsOneWidget); + /// expect(find.textContaining('Close', findRichText: true), findsOneWidget); + /// expect(find.textContaining(RegExp(r'(\w+)'), findRichText: true), findsOneWidget); /// ``` /// /// This will match [Text], [Text.rich], [EditableText], as well as standalone