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:
Valentin Vignal 2024-08-01 16:59:17 +08:00 committed by GitHub
parent e38f730335
commit 7f4f1a0a62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
});
}