matthewfx / sleek_circular_slider

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

Max = min causes an unhandled exception #5

Closed volgin closed 4 years ago

volgin commented 4 years ago

If max value equals min value, an unhandled exception is thrown by this code because it attempts to divide by zero:

  final divider = (max - min) / 100;
  return (value - previous).abs() ~/ divider * 15;
matthewfx commented 4 years ago

Thanks Volgin. I will be releasing an update soon and will address this bug in it too.

matthewfx commented 4 years ago

Fixed in 1.1.0