matthewfx / sleek_circular_slider

Sleek circular slider for Flutter
MIT License
524 stars 102 forks source link

offset is NaN #37

Open geiziry opened 4 years ago

geiziry commented 4 years ago

found a bug when min equals max the method of double valueToPercentage(double value, double min, double max) { return value / ((max - min) / 100); } in utils.dart return NaN because of division by zero.

as a workaround, I'm checking when min==max and setting max=min+0.1