@@ -8,7 +8,7 @@ import 'package:flutter_test/flutter_test.dart';
8
8
9
9
void main () {
10
10
testWidgets ('debugCheckHasMaterial control test' , (WidgetTester tester) async {
11
- await tester.pumpWidget (const ListTile ( ));
11
+ await tester.pumpWidget (const Chip (label : Text ( 'label' ) ));
12
12
final dynamic exception = tester.takeException ();
13
13
expect (exception, isFlutterError);
14
14
final FlutterError error = exception as FlutterError ;
@@ -28,7 +28,7 @@ void main() {
28
28
error.toStringDeep (),
29
29
'FlutterError\n '
30
30
' No Material widget found.\n '
31
- ' ListTile widgets require a Material widget ancestor.\n '
31
+ ' Chip widgets require a Material widget ancestor.\n '
32
32
' In material design, most widgets are conceptually "printed" on a\n '
33
33
" sheet of material. In Flutter's material library, that material\n "
34
34
' is represented by the Material widget. It is the Material widget\n '
@@ -39,7 +39,7 @@ void main() {
39
39
' one, or use a widget that contains Material itself, such as a\n '
40
40
' Card, Dialog, Drawer, or Scaffold.\n '
41
41
' The specific widget that could not find a Material ancestor was:\n '
42
- ' ListTile \n '
42
+ ' Chip \n '
43
43
' The ancestors of this widget were:\n '
44
44
' [root]\n ' ,
45
45
);
0 commit comments