From d2e6dfefa5caf89231aec56f11b552934a70e7c7 Mon Sep 17 00:00:00 2001 From: Bernardo Ferrari Date: Fri, 18 Nov 2022 18:15:26 -0300 Subject: [PATCH] Fix formatting in BottomAppBar test (#115520) This PR made a few mistakes on formatting: https://github.com/flutter/flutter/pull/115175 --- .../test/material/bottom_app_bar_test.dart | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/packages/flutter/test/material/bottom_app_bar_test.dart b/packages/flutter/test/material/bottom_app_bar_test.dart index fd04ad5727a5..d160662afd49 100644 --- a/packages/flutter/test/material/bottom_app_bar_test.dart +++ b/packages/flutter/test/material/bottom_app_bar_test.dart @@ -85,9 +85,8 @@ void main() { ); }, skip: isBrowser); // https://github.com/flutter/flutter/issues/44572 - testWidgets('Custom Padding', (WidgetTester tester) async { - const EdgeInsets customPadding = EdgeInsets.all(10); + const EdgeInsets customPadding = EdgeInsets.all(10); await tester.pumpWidget( MaterialApp( theme: ThemeData.from(colorScheme: const ColorScheme.light()), @@ -98,10 +97,10 @@ void main() { alignment: Alignment.bottomCenter, child: BottomAppBar( padding: customPadding, - child:ColoredBox( - color:Colors.green, - child:SizedBox(width: 300, height: 60), - ), + child: ColoredBox( + color: Colors.green, + child: SizedBox(width: 300, height: 60), + ), ), ), ); @@ -112,14 +111,14 @@ void main() { final BottomAppBar bottomAppBar = tester.widget(find.byType(BottomAppBar)); expect(bottomAppBar.padding, customPadding); - final Rect babRect = tester.getRect(find.byType(BottomAppBar)); - final Rect childRect = tester.getRect(find.byType(ColoredBox)); + final Rect babRect = tester.getRect(find.byType(BottomAppBar)); + final Rect childRect = tester.getRect(find.byType(ColoredBox)); expect(childRect, const Rect.fromLTRB(250, 530, 550, 590)); expect(babRect, const Rect.fromLTRB(240, 520, 560, 600)); }); testWidgets('Custom Padding in Material 3', (WidgetTester tester) async { - const EdgeInsets customPadding = EdgeInsets.all(10); + const EdgeInsets customPadding = EdgeInsets.all(10); await tester.pumpWidget( MaterialApp( theme: ThemeData.from(colorScheme: const ColorScheme.light(), useMaterial3: true), @@ -130,10 +129,10 @@ void main() { alignment: Alignment.bottomCenter, child: BottomAppBar( padding: customPadding, - child:ColoredBox( - color:Colors.green, - child:SizedBox(width: 300, height: 60), - ), + child: ColoredBox( + color: Colors.green, + child: SizedBox(width: 300, height: 60), + ), ), ), ); @@ -144,8 +143,8 @@ void main() { final BottomAppBar bottomAppBar = tester.widget(find.byType(BottomAppBar)); expect(bottomAppBar.padding, customPadding); - final Rect babRect = tester.getRect(find.byType(BottomAppBar)); - final Rect childRect = tester.getRect(find.byType(ColoredBox)); + final Rect babRect = tester.getRect(find.byType(BottomAppBar)); + final Rect childRect = tester.getRect(find.byType(ColoredBox)); expect(childRect, const Rect.fromLTRB(250, 530, 550, 590)); expect(babRect, const Rect.fromLTRB(240, 520, 560, 600)); });