Unverified Commit d2e6dfef authored by Bernardo Ferrari's avatar Bernardo Ferrari Committed by GitHub

Fix formatting in BottomAppBar test (#115520)

This PR made a few mistakes on formatting: https://github.com/flutter/flutter/pull/115175
parent 24865ad8
...@@ -85,9 +85,8 @@ void main() { ...@@ -85,9 +85,8 @@ void main() {
); );
}, skip: isBrowser); // https://github.com/flutter/flutter/issues/44572 }, skip: isBrowser); // https://github.com/flutter/flutter/issues/44572
testWidgets('Custom Padding', (WidgetTester tester) async { testWidgets('Custom Padding', (WidgetTester tester) async {
const EdgeInsets customPadding = EdgeInsets.all(10); const EdgeInsets customPadding = EdgeInsets.all(10);
await tester.pumpWidget( await tester.pumpWidget(
MaterialApp( MaterialApp(
theme: ThemeData.from(colorScheme: const ColorScheme.light()), theme: ThemeData.from(colorScheme: const ColorScheme.light()),
...@@ -98,10 +97,10 @@ void main() { ...@@ -98,10 +97,10 @@ void main() {
alignment: Alignment.bottomCenter, alignment: Alignment.bottomCenter,
child: BottomAppBar( child: BottomAppBar(
padding: customPadding, padding: customPadding,
child:ColoredBox( child: ColoredBox(
color:Colors.green, color: Colors.green,
child:SizedBox(width: 300, height: 60), child: SizedBox(width: 300, height: 60),
), ),
), ),
), ),
); );
...@@ -112,14 +111,14 @@ void main() { ...@@ -112,14 +111,14 @@ void main() {
final BottomAppBar bottomAppBar = tester.widget(find.byType(BottomAppBar)); final BottomAppBar bottomAppBar = tester.widget(find.byType(BottomAppBar));
expect(bottomAppBar.padding, customPadding); expect(bottomAppBar.padding, customPadding);
final Rect babRect = tester.getRect(find.byType(BottomAppBar)); final Rect babRect = tester.getRect(find.byType(BottomAppBar));
final Rect childRect = tester.getRect(find.byType(ColoredBox)); final Rect childRect = tester.getRect(find.byType(ColoredBox));
expect(childRect, const Rect.fromLTRB(250, 530, 550, 590)); expect(childRect, const Rect.fromLTRB(250, 530, 550, 590));
expect(babRect, const Rect.fromLTRB(240, 520, 560, 600)); expect(babRect, const Rect.fromLTRB(240, 520, 560, 600));
}); });
testWidgets('Custom Padding in Material 3', (WidgetTester tester) async { testWidgets('Custom Padding in Material 3', (WidgetTester tester) async {
const EdgeInsets customPadding = EdgeInsets.all(10); const EdgeInsets customPadding = EdgeInsets.all(10);
await tester.pumpWidget( await tester.pumpWidget(
MaterialApp( MaterialApp(
theme: ThemeData.from(colorScheme: const ColorScheme.light(), useMaterial3: true), theme: ThemeData.from(colorScheme: const ColorScheme.light(), useMaterial3: true),
...@@ -130,10 +129,10 @@ void main() { ...@@ -130,10 +129,10 @@ void main() {
alignment: Alignment.bottomCenter, alignment: Alignment.bottomCenter,
child: BottomAppBar( child: BottomAppBar(
padding: customPadding, padding: customPadding,
child:ColoredBox( child: ColoredBox(
color:Colors.green, color: Colors.green,
child:SizedBox(width: 300, height: 60), child: SizedBox(width: 300, height: 60),
), ),
), ),
), ),
); );
...@@ -144,8 +143,8 @@ void main() { ...@@ -144,8 +143,8 @@ void main() {
final BottomAppBar bottomAppBar = tester.widget(find.byType(BottomAppBar)); final BottomAppBar bottomAppBar = tester.widget(find.byType(BottomAppBar));
expect(bottomAppBar.padding, customPadding); expect(bottomAppBar.padding, customPadding);
final Rect babRect = tester.getRect(find.byType(BottomAppBar)); final Rect babRect = tester.getRect(find.byType(BottomAppBar));
final Rect childRect = tester.getRect(find.byType(ColoredBox)); final Rect childRect = tester.getRect(find.byType(ColoredBox));
expect(childRect, const Rect.fromLTRB(250, 530, 550, 590)); expect(childRect, const Rect.fromLTRB(250, 530, 550, 590));
expect(babRect, const Rect.fromLTRB(240, 520, 560, 600)); expect(babRect, const Rect.fromLTRB(240, 520, 560, 600));
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment