@@ -252,29 +252,6 @@ void checkSelectedItemTextGeometry(WidgetTester tester, String value) {
252252 expect (box0.size, equals (box1.size));
253253}
254254
255- void verifyPaintedShadow (Finder customPaint, int elevation) {
256- const Rect originalRectangle = Rect .fromLTRB (0.0 , 0.0 , 800 , 208.0 );
257-
258- final List <BoxShadow > boxShadows = List <BoxShadow >.generate (3 , (int index) => kElevationToShadow[elevation]! [index]);
259- final List <RRect > rrects = List <RRect >.generate (3 , (int index) {
260- return RRect .fromRectAndRadius (
261- originalRectangle.shift (
262- boxShadows[index].offset,
263- ).inflate (boxShadows[index].spreadRadius),
264- const Radius .circular (2.0 ),
265- );
266- });
267-
268- expect (
269- customPaint,
270- paints
271- ..save ()
272- ..rrect (rrect: rrects[0 ], color: boxShadows[0 ].color, hasMaskFilter: true )
273- ..rrect (rrect: rrects[1 ], color: boxShadows[1 ].color, hasMaskFilter: true )
274- ..rrect (rrect: rrects[2 ], color: boxShadows[2 ].color, hasMaskFilter: true ),
275- );
276- }
277-
278255Future <void > checkDropdownColor (WidgetTester tester, {Color ? color, bool isFormField = false }) async {
279256 const String text = 'foo' ;
280257 await tester.pumpWidget (
@@ -325,12 +302,6 @@ Future<void> checkDropdownColor(WidgetTester tester, {Color? color, bool isFormF
325302 );
326303}
327304
328- bool sameGeometry (RenderBox box1, RenderBox box2) {
329- expect (box1.localToGlobal (Offset .zero), equals (box2.localToGlobal (Offset .zero)));
330- expect (box1.size.height, equals (box2.size.height));
331- return true ;
332- }
333-
334305void main () {
335306 testWidgets ('Default dropdown golden' , (WidgetTester tester) async {
336307 final Key buttonKey = UniqueKey ();
0 commit comments