File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ class _FlutterSliderState extends State<FlutterSlider>
273
273
}
274
274
__containerSizeWithoutPadding = _containerHeightWithoutPadding;
275
275
_containerWidth =
276
- [(sliderProperSize! * 2 ), layoutWidth].reduce (max );
276
+ [(sliderProperSize! * 2 ), layoutWidth].reduce (min );
277
277
_containerHeight = constraints.maxHeight;
278
278
} else {
279
279
double layoutHeight = constraints.maxHeight;
@@ -282,7 +282,7 @@ class _FlutterSliderState extends State<FlutterSlider>
282
282
}
283
283
_containerWidth = constraints.maxWidth;
284
284
_containerHeight =
285
- [(sliderProperSize! * 2 ), layoutHeight].reduce (max );
285
+ [(sliderProperSize! * 2 ), layoutHeight].reduce (min );
286
286
__containerSizeWithoutPadding = _containerWidthWithoutPadding;
287
287
}
288
288
You can’t perform that action at this time.
0 commit comments