@@ -22,8 +22,7 @@ class RenderOverflowView extends RenderBox
22
22
required Axis direction,
23
23
required double spacing,
24
24
required OverflowViewLayoutBehavior layoutBehavior,
25
- }) : assert (spacing > double .negativeInfinity &&
26
- spacing < double .infinity),
25
+ }) : assert (spacing > double .negativeInfinity && spacing < double .infinity),
27
26
_direction = direction,
28
27
_spacing = spacing,
29
28
_layoutBehavior = layoutBehavior,
@@ -44,8 +43,7 @@ class RenderOverflowView extends RenderBox
44
43
double get spacing => _spacing;
45
44
double _spacing;
46
45
set spacing (double value) {
47
- assert (value > double .negativeInfinity &&
48
- value < double .infinity);
46
+ assert (value > double .negativeInfinity && value < double .infinity);
49
47
if (_spacing != value) {
50
48
_spacing = value;
51
49
markNeedsLayout ();
@@ -60,6 +58,7 @@ class RenderOverflowView extends RenderBox
60
58
markNeedsLayout ();
61
59
}
62
60
}
61
+
63
62
bool _isHorizontal;
64
63
@override
65
64
void setupParentData (RenderBox child) {
@@ -262,7 +261,7 @@ class RenderOverflowView extends RenderBox
262
261
_hasOverflow = true ;
263
262
}
264
263
265
- if (overflowIndicatorConstraints.value != unRenderedChildCount && overflowIndicator != null ) {
264
+ if (overflowIndicatorConstraints.value != unRenderedChildCount) {
266
265
// The number of unrendered child changed, we have to layout the
267
266
// indicator another time.
268
267
overflowIndicator.layout (
@@ -293,7 +292,7 @@ class RenderOverflowView extends RenderBox
293
292
// a last time, and can cause error.
294
293
lastChild? .layout (BoxValueConstraints <int >(
295
294
value: unRenderedChildCount,
296
- constraints: childConstraints as BoxConstraints ,
295
+ constraints: childConstraints,
297
296
));
298
297
299
298
// Because the overflow indicator will be paint outside of the screen,
0 commit comments