Skip to content

Commit 83ab937

Browse files
committed
fix nits
1 parent 22b0da6 commit 83ab937

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

packages/flutter/lib/src/material/banner.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class MaterialBanner extends StatefulWidget {
159159

160160
/// The optional minimum action bar height.
161161
///
162-
/// Default is 52.0.
162+
/// Default to 52.0.
163163
final double minActionBarHeight;
164164

165165
/// The color of the surface of this [MaterialBanner].

packages/flutter/test/material/banner_test.dart

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ void main() {
11521152
});
11531153

11541154
testWidgets('MinimumActionBarHeight respected', (WidgetTester tester) async {
1155-
const double minActionBarHeight = 20;
1155+
const double minActionBarHeight = 20.0;
11561156
await tester.pumpWidget(
11571157
MaterialApp(
11581158
home:Scaffold(
@@ -1165,7 +1165,6 @@ void main() {
11651165
actions: <Widget>[
11661166
SizedBox.shrink(),
11671167
],
1168-
11691168
),
11701169
)
11711170
),
@@ -1177,7 +1176,7 @@ void main() {
11771176

11781177
testWidgets('MinimumActionBarHeight respects with ScaffoldMessenger', (WidgetTester tester) async {
11791178
const Key tapTarget = Key('tap-target');
1180-
const double minActionBarHeight = 20;
1179+
const double minActionBarHeight = 20.0;
11811180
await tester.pumpWidget(MaterialApp(
11821181
home: Scaffold(
11831182
body: Builder(
@@ -1208,12 +1207,9 @@ void main() {
12081207
await tester.tap(find.byKey(tapTarget));
12091208
await tester.pumpAndSettle();
12101209

1211-
12121210
final Size materialBarSize = tester.getSize(find.byType(MaterialBanner));
12131211
expect(materialBarSize.height, equals(minActionBarHeight));
1214-
12151212
});
1216-
12171213
}
12181214

12191215
Material _getMaterialFromBanner(WidgetTester tester) {

0 commit comments

Comments
 (0)