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
900e5405
Unverified
Commit
900e5405
authored
Apr 21, 2022
by
Taha Tesser
Committed by
GitHub
Apr 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace `ListTile` with `Chip` in the `debugCheckHasMaterial control test` (#102311)
parent
4a72c534
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
debug_test.dart
packages/flutter/test/material/debug_test.dart
+3
-3
No files found.
packages/flutter/test/material/debug_test.dart
View file @
900e5405
...
...
@@ -8,7 +8,7 @@ import 'package:flutter_test/flutter_test.dart';
void
main
(
)
{
testWidgets
(
'debugCheckHasMaterial control test'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
const
ListTile
(
));
await
tester
.
pumpWidget
(
const
Chip
(
label:
Text
(
'label'
)
));
final
dynamic
exception
=
tester
.
takeException
();
expect
(
exception
,
isFlutterError
);
final
FlutterError
error
=
exception
as
FlutterError
;
...
...
@@ -28,7 +28,7 @@ void main() {
error
.
toStringDeep
(),
'FlutterError
\n
'
' No Material widget found.
\n
'
'
ListTile
widgets require a Material widget ancestor.
\n
'
'
Chip
widgets require a Material widget ancestor.
\n
'
' In material design, most widgets are conceptually "printed" on a
\n
'
" sheet of material. In Flutter's material library, that material
\n
"
' is represented by the Material widget. It is the Material widget
\n
'
...
...
@@ -39,7 +39,7 @@ void main() {
' one, or use a widget that contains Material itself, such as a
\n
'
' Card, Dialog, Drawer, or Scaffold.
\n
'
' The specific widget that could not find a Material ancestor was:
\n
'
'
ListTile
\n
'
'
Chip
\n
'
' The ancestors of this widget were:
\n
'
' [root]
\n
'
,
);
...
...
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