File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ class MaterialBanner extends StatefulWidget {
159
159
160
160
/// The optional minimum action bar height.
161
161
///
162
- /// Default is 52.0.
162
+ /// Default to 52.0.
163
163
final double minActionBarHeight;
164
164
165
165
/// The color of the surface of this [MaterialBanner] .
Original file line number Diff line number Diff line change @@ -1152,7 +1152,7 @@ void main() {
1152
1152
});
1153
1153
1154
1154
testWidgets ('MinimumActionBarHeight respected' , (WidgetTester tester) async {
1155
- const double minActionBarHeight = 20 ;
1155
+ const double minActionBarHeight = 20.0 ;
1156
1156
await tester.pumpWidget (
1157
1157
MaterialApp (
1158
1158
home: Scaffold (
@@ -1165,7 +1165,6 @@ void main() {
1165
1165
actions: < Widget > [
1166
1166
SizedBox .shrink (),
1167
1167
],
1168
-
1169
1168
),
1170
1169
)
1171
1170
),
@@ -1177,7 +1176,7 @@ void main() {
1177
1176
1178
1177
testWidgets ('MinimumActionBarHeight respects with ScaffoldMessenger' , (WidgetTester tester) async {
1179
1178
const Key tapTarget = Key ('tap-target' );
1180
- const double minActionBarHeight = 20 ;
1179
+ const double minActionBarHeight = 20.0 ;
1181
1180
await tester.pumpWidget (MaterialApp (
1182
1181
home: Scaffold (
1183
1182
body: Builder (
@@ -1208,12 +1207,9 @@ void main() {
1208
1207
await tester.tap (find.byKey (tapTarget));
1209
1208
await tester.pumpAndSettle ();
1210
1209
1211
-
1212
1210
final Size materialBarSize = tester.getSize (find.byType (MaterialBanner ));
1213
1211
expect (materialBarSize.height, equals (minActionBarHeight));
1214
-
1215
1212
});
1216
-
1217
1213
}
1218
1214
1219
1215
Material _getMaterialFromBanner (WidgetTester tester) {
You can’t perform that action at this time.
0 commit comments