Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
9313fb8e
Unverified
Commit
9313fb8e
authored
Apr 20, 2022
by
8rine23
Committed by
GitHub
Apr 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The sample code used within the comments in textContaining is wrong (#100860)
parent
1ac36828
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
finders.dart
packages/flutter_test/lib/src/finders.dart
+4
-4
No files found.
packages/flutter_test/lib/src/finders.dart
View file @
9313fb8e
...
...
@@ -83,16 +83,16 @@ class CommonFinders {
/// ## Sample code
///
/// ```dart
/// expect(find.textContain('Back'), findsOneWidget);
/// expect(find.textContain(RegExp(r'(\w+)')), findsOneWidget);
/// expect(find.textContain
ing
('Back'), findsOneWidget);
/// expect(find.textContain
ing
(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.textContain
ing
('Close', findRichText: true), findsOneWidget);
/// expect(find.textContain
ing
(RegExp(r'(\w+)'), findRichText: true), findsOneWidget);
/// ```
///
/// This will match [Text], [Text.rich], [EditableText], as well as standalone
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment