matthewfx/sleek_circular_slider

ReadOnly mode [enhancement]

mxaxs opened this issue · 0 comments

mxaxs commented

Awsome Widget pal!
Just a suggestion, easy to implement. I miss a readonly property and saw it is just a few lines change.

  1. Add a property readOnly to class
  2. _interactionEnabled is the point! I've added && !widget.readOnly to line:

bool get _interactionEnabled => !widget.readOnly && (widget.onChangeEnd != null || widget.onChange != null && !widget.appearance.spinnerMode);

It would be great!
Thanks in advance