@@ -29,20 +29,20 @@ void main() {
29
29
check (childRect).equals (parentRect);
30
30
});
31
31
32
- testWidgets ('render shadow correctly' , (tester) async {
33
- PaintPatternPredicate paintGradient ({required Rect rect}) {
34
- // This is inspired by
35
- // https://github.com/flutter/flutter/blob/7b5462cc34af903e2f2de4be7540ff858685cdfc/packages/flutter/test/cupertino/route_test.dart#L1449-L1475
36
- return (Symbol methodName, List <dynamic > arguments) {
37
- check (methodName).equals (#drawRect);
38
- check (arguments[0 ]).isA <Rect >().equals (rect);
39
- // We can't further check [ui.Gradient] because it is opaque:
40
- // https://github.com/flutter/engine/blob/07d01ad1199522fa5889a10c1688c4e1812b6625/lib/ui/painting.dart#L4487
41
- check (arguments[1 ]).isA <Paint >().shader.isA< ui.Gradient > ();
42
- return true ;
43
- };
44
- }
32
+ PaintPatternPredicate paintGradient ({required Rect rect}) {
33
+ // This is inspired by
34
+ // https://github.com/flutter/flutter/blob/7b5462cc34af903e2f2de4be7540ff858685cdfc/packages/flutter/test/cupertino/route_test.dart#L1449-L1475
35
+ return (Symbol methodName, List <dynamic > arguments) {
36
+ check (methodName).equals (#drawRect);
37
+ check (arguments[0 ]).isA <Rect >().equals (rect);
38
+ // We can't further check [ui.Gradient] because it is opaque:
39
+ // https://github.com/flutter/engine/blob/07d01ad1199522fa5889a10c1688c4e1812b6625/lib/ui/painting.dart#L4487
40
+ check (arguments[1 ]).isA <Paint >().shader.isA< ui.Gradient > ();
41
+ return true ;
42
+ };
43
+ }
45
44
45
+ testWidgets ('render shadow correctly' , (tester) async {
46
46
await tester.pumpWidget (const Directionality (
47
47
textDirection: TextDirection .ltr,
48
48
child: Center (
0 commit comments