mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Fix formatting issues in search_anchor.0_test.dart
(#152669)
Fix formatting issues in `examples/api/test/material/search_anchor/search_anchor.0_test.dart` Comes from https://github.com/flutter/flutter/pull/152371 Linked to https://github.com/flutter/flutter/issues/130459
This commit is contained in:
parent
e38f730335
commit
7f4f1a0a62
@ -12,7 +12,7 @@ void main() {
|
||||
|
||||
expect(find.widgetWithText(AppBar, 'Search Bar Sample'), findsOne);
|
||||
|
||||
expect(find.byWidgetPredicate((Widget widget) => widget is Card && widget.color ==const Color(0xff6750a4)), findsOne);
|
||||
expect(find.byWidgetPredicate((Widget widget) => widget is Card && widget.color == const Color(0xff6750a4)), findsOne);
|
||||
|
||||
await tester.tap(find.byIcon(Icons.search));
|
||||
await tester.pumpAndSettle();
|
||||
@ -28,7 +28,7 @@ void main() {
|
||||
await tester.tap(find.widgetWithText(ListTile, 'red'));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.byWidgetPredicate((Widget widget) => widget is Card && widget.color ==const Color(0xff904a42)), findsOne);
|
||||
expect(find.byWidgetPredicate((Widget widget) => widget is Card && widget.color == const Color(0xff904a42)), findsOne);
|
||||
|
||||
await tester.tap(find.byIcon(Icons.search));
|
||||
await tester.pumpAndSettle();
|
||||
@ -50,6 +50,6 @@ void main() {
|
||||
await tester.tap(find.widgetWithText(ListTile, 'blue'));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.byWidgetPredicate((Widget widget) => widget is Card && widget.color ==const Color(0xff36618e)), findsOne);
|
||||
expect(find.byWidgetPredicate((Widget widget) => widget is Card && widget.color == const Color(0xff36618e)), findsOne);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user