Skip to content

Commit d2e6dfe

Browse files
authored
Fix formatting in BottomAppBar test (#115520)
This PR made a few mistakes on formatting: flutter/flutter#115175
1 parent 24865ad commit d2e6dfe

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

packages/flutter/test/material/bottom_app_bar_test.dart

+14-15
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,8 @@ void main() {
8585
);
8686
}, skip: isBrowser); // https://github.com/flutter/flutter/issues/44572
8787

88-
8988
testWidgets('Custom Padding', (WidgetTester tester) async {
90-
const EdgeInsets customPadding = EdgeInsets.all(10);
89+
const EdgeInsets customPadding = EdgeInsets.all(10);
9190
await tester.pumpWidget(
9291
MaterialApp(
9392
theme: ThemeData.from(colorScheme: const ColorScheme.light()),
@@ -98,10 +97,10 @@ void main() {
9897
alignment: Alignment.bottomCenter,
9998
child: BottomAppBar(
10099
padding: customPadding,
101-
child:ColoredBox(
102-
color:Colors.green,
103-
child:SizedBox(width: 300, height: 60),
104-
),
100+
child: ColoredBox(
101+
color: Colors.green,
102+
child: SizedBox(width: 300, height: 60),
103+
),
105104
),
106105
),
107106
);
@@ -112,14 +111,14 @@ void main() {
112111

113112
final BottomAppBar bottomAppBar = tester.widget(find.byType(BottomAppBar));
114113
expect(bottomAppBar.padding, customPadding);
115-
final Rect babRect = tester.getRect(find.byType(BottomAppBar));
116-
final Rect childRect = tester.getRect(find.byType(ColoredBox));
114+
final Rect babRect = tester.getRect(find.byType(BottomAppBar));
115+
final Rect childRect = tester.getRect(find.byType(ColoredBox));
117116
expect(childRect, const Rect.fromLTRB(250, 530, 550, 590));
118117
expect(babRect, const Rect.fromLTRB(240, 520, 560, 600));
119118
});
120119

121120
testWidgets('Custom Padding in Material 3', (WidgetTester tester) async {
122-
const EdgeInsets customPadding = EdgeInsets.all(10);
121+
const EdgeInsets customPadding = EdgeInsets.all(10);
123122
await tester.pumpWidget(
124123
MaterialApp(
125124
theme: ThemeData.from(colorScheme: const ColorScheme.light(), useMaterial3: true),
@@ -130,10 +129,10 @@ void main() {
130129
alignment: Alignment.bottomCenter,
131130
child: BottomAppBar(
132131
padding: customPadding,
133-
child:ColoredBox(
134-
color:Colors.green,
135-
child:SizedBox(width: 300, height: 60),
136-
),
132+
child: ColoredBox(
133+
color: Colors.green,
134+
child: SizedBox(width: 300, height: 60),
135+
),
137136
),
138137
),
139138
);
@@ -144,8 +143,8 @@ void main() {
144143

145144
final BottomAppBar bottomAppBar = tester.widget(find.byType(BottomAppBar));
146145
expect(bottomAppBar.padding, customPadding);
147-
final Rect babRect = tester.getRect(find.byType(BottomAppBar));
148-
final Rect childRect = tester.getRect(find.byType(ColoredBox));
146+
final Rect babRect = tester.getRect(find.byType(BottomAppBar));
147+
final Rect childRect = tester.getRect(find.byType(ColoredBox));
149148
expect(childRect, const Rect.fromLTRB(250, 530, 550, 590));
150149
expect(babRect, const Rect.fromLTRB(240, 520, 560, 600));
151150
});

0 commit comments

Comments
 (0)