You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I built a range slider. If I put max and min both equal 0 as following code:
FlutterSlider(
values: [_lowerValue, _upperValue], // both are 0
touchSize:5,
rangeSlider:true,
trackBar:FlutterSliderTrackBar(
activeTrackBarDraggable:false,
inactiveTrackBar:BoxDecoration(
borderRadius:BorderRadius.circular(20),
color:Colors.black12,
),
activeTrackBar:BoxDecoration(
borderRadius:BorderRadius.circular(4.0),
color: accentBlue,
),
),
max: maxValue, // is 0
min: minValue, // is 0
)
I got following error when dragging handlers, then all the handlers jump to the top-left of the screen:
The following assertion was thrown building Container(bg: BoxDecoration(color: Color(0xff1884db), borderRadius: BorderRadius.circular(4.0)), constraints: BoxConstraints(NaN<=w<=NaN, h=3.5; NOT NORMALIZED)):
BoxConstraints has NaN values in minWidth and maxWidth.
The offending constraints were: BoxConstraints(NaN<=w<=NaN, h=3.5; NOT NORMALIZED)
Hint from BorderRadius.circular(4.0), I guess the problem is from the activeTrackBar.
P/S: The error occurs when setting all max, min, _lowerValue, _upperValue to any equal number.
The text was updated successfully, but these errors were encountered:
I built a range slider. If I put
max
andmin
both equal 0 as following code:I got following error when dragging handlers, then all the handlers jump to the top-left of the screen:
Hint from
BorderRadius.circular(4.0)
, I guess the problem is from theactiveTrackBar
.P/S: The error occurs when setting all
max, min, _lowerValue, _upperValue
to any equal number.The text was updated successfully, but these errors were encountered: