Skip to content

Commit

Permalink
The sample code used within the comments in textContaining is wrong (…
Browse files Browse the repository at this point in the history
…#100860)
  • Loading branch information
TowaYamashita authored Apr 20, 2022
1 parent 1ac3682 commit 9313fb8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/flutter_test/lib/src/finders.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9313fb8

Please sign in to comment.